Package io.cucumber.java
Class AbstractGlueDefinition
java.lang.Object
io.cucumber.java.AbstractGlueDefinition
- All Implemented Interfaces:
Located
- Direct Known Subclasses:
AbstractDatatableElementTransformerDefinition,JavaDefaultParameterTransformerDefinition,JavaDocStringTypeDefinition,JavaHookDefinition,JavaParameterTypeDefinition,JavaStaticHookDefinition,JavaStepDefinition
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate @Nullable Stringprivate final Lookupprotected final Methodprivate @Nullable SourceReference -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate Stringfinal StringLocation of step definition.(package private) final @Nullable ObjectinvokeMethod(@Nullable Object... args) booleanReturn true if this matches the location.
-
Field Details
-
method
-
lookup
-
fullFormat
-
sourceReference
-
-
Constructor Details
-
AbstractGlueDefinition
-
-
Method Details
-
isDefinedAt
Description copied from interface:LocatedReturn true if this matches the location. This is used to filter stack traces.- Specified by:
isDefinedAtin interfaceLocated- Parameters:
e- The location of the step.- Returns:
- Return true if this matches the location.
-
getLocation
Description copied from interface:LocatedLocation of step definition. Can either be a a method or stack trace style location.Examples:
-
com.example.StepDefinitions.given_an_example(io.cucumber.datatable.DataTable) com.example.StepDefinitions.<init>(StepDefinitions.java:9)
- Specified by:
getLocationin interfaceLocated- Returns:
- The source line of the step definition.
-
-
getFullLocationLocation
-
invokeMethod
-
getSourceReference
- Specified by:
getSourceReferencein interfaceLocated
-