Package io.cucumber.plugin.event
Interface Step
-
@API(status=STABLE) public interface StepRepresents a step in a scenario.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description StepArgumentgetArgument()Returns this Gherkin step argument.StringgetKeyword()Returns this steps keyword.default StringgetKeyWord()Deprecated.usegetKeyword()insteadintgetLine()Line in the source this step is located in.LocationgetLocation()Location of this step in in the source.StringgetText()Returns this steps text.
-
-
-
Method Detail
-
getArgument
StepArgument getArgument()
Returns this Gherkin step argument. Can be either a data table or doc string.- Returns:
- a step argument, null if absent
-
getKeyWord
default String getKeyWord()
Deprecated.usegetKeyword()insteadReturns this steps keyword. I.e. Given, When, Then.- Returns:
- step key word
-
getKeyword
String getKeyword()
Returns this steps keyword. I.e. Given, When, Then.- Returns:
- step key word
-
getText
String getText()
Returns this steps text.- Returns:
- this steps text
-
getLine
int getLine()
Line in the source this step is located in.- Returns:
- step line number
-
getLocation
Location getLocation()
Location of this step in in the source.- Returns:
- location in the source
-
-