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
Modifier and TypeMethodDescriptionLocation of step definition.default Optional<SourceReference>
boolean
isDefinedAt
(StackTraceElement stackTraceElement)
-
Method Details
-
isDefinedAt
- 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
-