Package io.cucumber.java8
Class AbstractGlueDefinition
java.lang.Object
io.cucumber.java8.AbstractGlueDefinition
- All Implemented Interfaces:
Located
- Direct Known Subclasses:
AbstractDatatableElementTransformerDefinition,Java8DefaultParameterTransformerDefinition,Java8DocStringTypeDefinition,Java8HookDefinition,Java8ParameterTypeDefinition,Java8StepDefinition
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate @Nullable Object(package private) final StackTraceElementprivate @Nullable Methodprivate intprivate @Nullable SourceReference -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidprivate static MethodgetAcceptMethod(Class<?> bodyClass) final StringLocation of step definition.protected intprotected @Nullable ObjectinvokeMethod(@Nullable Object... args) final booleanisDefinedAt(StackTraceElement stackTraceElement) Return true if this matches the location.(package private) SourceReference(package private) Class<?>[]resolveRawArguments(Class<?> bodyClass, Class<?> body) (package private) voidprivate voidupdateClosure(@Nullable Object body)
-
Field Details
-
body
-
method
-
sourceReference
-
parameterCount
private int parameterCount -
location
-
-
Constructor Details
-
AbstractGlueDefinition
AbstractGlueDefinition(Object body, StackTraceElement location)
-
-
Method Details
-
updateClosure
-
updateClosure
-
disposeClosure
void disposeClosure() -
getAcceptMethod
-
invokeMethod
-
getParameterCount
protected int getParameterCount() -
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.
-
-
isDefinedAt
Description copied from interface:LocatedReturn true if this matches the location. This is used to filter stack traces.- Specified by:
isDefinedAtin interfaceLocated- Parameters:
stackTraceElement- The location of the step.- Returns:
- Return true if this matches the location.
-
getSourceReference
- Specified by:
getSourceReferencein interfaceLocated
-
requireSourceReference
SourceReference requireSourceReference() -
resolveRawArguments
-