Class GherkinMessagesStep

java.lang.Object
io.cucumber.core.gherkin.messages.GherkinMessagesStep
All Implemented Interfaces:
Step, Step

final class GherkinMessagesStep extends Object implements Step
  • Field Details

    • pickleStep

      private final io.cucumber.messages.types.PickleStep pickleStep
    • arguments

      private final List<Argument> arguments
    • keyword

      private final String keyword
    • stepType

      private final StepType stepType
    • previousGwtKeyword

      private final String previousGwtKeyword
    • location

      private final Location location
  • Constructor Details

    • GherkinMessagesStep

      GherkinMessagesStep(io.cucumber.messages.types.PickleStep pickleStep, io.cucumber.gherkin.GherkinDialect dialect, String previousGwtKeyword, Location location, String keyword)
  • Method Details

    • extractArgument

      private static List<Argument> extractArgument(io.cucumber.messages.types.PickleStep pickleStep, Location location)
    • extractKeyWordType

      private static StepType extractKeyWordType(String keyword, io.cucumber.gherkin.GherkinDialect dialect)
    • getKeyword

      public String getKeyword()
      Description copied from interface: Step
      Returns this steps keyword. I.e. Given, When, Then.
      Specified by:
      getKeyword in interface Step
      Returns:
      step key word
    • getLine

      public int getLine()
      Description copied from interface: Step
      Line in the source this step is located in.
      Specified by:
      getLine in interface Step
      Returns:
      step line number
    • getLocation

      public Location getLocation()
      Description copied from interface: Step
      Location of this step in in the source.
      Specified by:
      getLocation in interface Step
      Returns:
      location in the source
    • getType

      public StepType getType()
      Specified by:
      getType in interface Step
    • getPreviousGivenWhenThenKeyword

      public String getPreviousGivenWhenThenKeyword()
      Specified by:
      getPreviousGivenWhenThenKeyword in interface Step
    • getId

      public String getId()
      Specified by:
      getId in interface Step
    • getArgument

      public @Nullable Argument getArgument()
      Description copied from interface: Step
      Returns this Gherkin step argument. Can be either a data table or doc string.
      Specified by:
      getArgument in interface Step
      Specified by:
      getArgument in interface Step
      Returns:
      a step argument, null if absent
    • getArguments

      public List<Argument> getArguments()
      Specified by:
      getArguments in interface Step
    • getText

      public String getText()
      Description copied from interface: Step
      Returns this steps text.
      Specified by:
      getText in interface Step
      Returns:
      this steps text