Package io.cucumber.core.backend
Interface Located
-
- All Known Subinterfaces:
DataTableTypeDefinition,DefaultDataTableCellTransformerDefinition,DefaultDataTableEntryTransformerDefinition,DefaultParameterTransformerDefinition,DocStringTypeDefinition,HookDefinition,ParameterTypeDefinition,StaticHookDefinition,StepDefinition
@API(status=STABLE) public interface Located
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description StringgetLocation()Location of step definition.default Optional<SourceReference>getSourceReference()booleanisDefinedAt(StackTraceElement stackTraceElement)
-
-
-
Method Detail
-
isDefinedAt
boolean isDefinedAt(StackTraceElement stackTraceElement)
- Parameters:
stackTraceElement- The location of the step.- Returns:
- Return true if this matches the location. This is used to filter stack traces.
-
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
default Optional<SourceReference> getSourceReference()
-
-