- All Known Subinterfaces:
DataTableTypeDefinition,DefaultDataTableCellTransformerDefinition,DefaultDataTableEntryTransformerDefinition,DefaultParameterTransformerDefinition,DocStringTypeDefinition,HookDefinition,ParameterTypeDefinition,StaticHookDefinition,StepDefinition
@API(status=STABLE)
public interface Located
-
Method Summary
Modifier and TypeMethodDescriptionLocation of step definition.default Optional<SourceReference> booleanisDefinedAt(StackTraceElement stackTraceElement) Return true if this matches the location.
-
Method Details
-
isDefinedAt
Return true if this matches the location. This is used to filter stack traces.- Parameters:
stackTraceElement- The location of the step.- Returns:
- Return true if this matches the location.
-
getLocation
String getLocation()Location 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)
- Returns:
- The source line of the step definition.
-
-
getSourceReference
-