Class GherkinMessagesStep
java.lang.Object
io.cucumber.core.gherkin.messages.GherkinMessagesStep
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGherkinMessagesStep(io.cucumber.messages.types.PickleStep pickleStep, io.cucumber.gherkin.GherkinDialect dialect, String previousGwtKeyword, Location location, String keyword) -
Method Summary
Modifier and TypeMethodDescriptionextractArgument(io.cucumber.messages.types.PickleStep pickleStep, Location location) private static StepTypeextractKeyWordType(String keyword, io.cucumber.gherkin.GherkinDialect dialect) @Nullable ArgumentReturns this Gherkin step argument.getId()Returns this steps keyword.intgetLine()Line in the source this step is located in.Location of this step in in the source.getText()Returns this steps text.getType()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.cucumber.plugin.event.Step
getKeyWord
-
Field Details
-
pickleStep
private final io.cucumber.messages.types.PickleStep pickleStep -
arguments
-
keyword
-
stepType
-
previousGwtKeyword
-
location
-
-
Constructor Details
-
GherkinMessagesStep
-
-
Method Details
-
extractArgument
-
extractKeyWordType
-
getKeyword
Description copied from interface:StepReturns this steps keyword. I.e. Given, When, Then.- Specified by:
getKeywordin interfaceStep- Returns:
- step key word
-
getLine
public int getLine()Description copied from interface:StepLine in the source this step is located in. -
getLocation
Description copied from interface:StepLocation of this step in in the source.- Specified by:
getLocationin interfaceStep- Returns:
- location in the source
-
getType
-
getPreviousGivenWhenThenKeyword
- Specified by:
getPreviousGivenWhenThenKeywordin interfaceStep
-
getId
-
getArgument
Description copied from interface:StepReturns this Gherkin step argument. Can be either a data table or doc string.- Specified by:
getArgumentin interfaceStep- Specified by:
getArgumentin interfaceStep- Returns:
- a step argument, null if absent
-
getArguments
- Specified by:
getArgumentsin interfaceStep
-
getText
Description copied from interface:StepReturns this steps text.
-