Package io.cucumber.core.backend
Interface Located
-
- All Known Subinterfaces:
DataTableTypeDefinition
,DefaultDataTableCellTransformerDefinition
,DefaultDataTableEntryTransformerDefinition
,DefaultParameterTransformerDefinition
,DocStringTypeDefinition
,HookDefinition
,ParameterTypeDefinition
,StepDefinition
@API(status=STABLE) public interface Located
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getLocation()
Location of step definition.boolean
isDefinedAt(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:
- @{code com.example.StepDefinitions.given_an_example(io.cucumber.datatable.DataTable)}
- @{code com.example.StepDefinitions.
(StepDefinitions.java:9)}
- Returns:
- The source line of the step definition.
-
-