Class GherkinMessagesPickle

java.lang.Object
io.cucumber.core.gherkin.messages.GherkinMessagesPickle
All Implemented Interfaces:
Pickle

final class GherkinMessagesPickle extends Object implements Pickle
Wraps Pickle to avoid exposing the gherkin library to all of Cucumber.
  • Field Details

    • pickle

      private final io.cucumber.messages.types.Pickle pickle
    • steps

      private final List<Step> steps
    • uri

      private final URI uri
    • cucumberQuery

      private final CucumberQuery cucumberQuery
  • Constructor Details

    • GherkinMessagesPickle

      GherkinMessagesPickle(io.cucumber.messages.types.Pickle pickle, URI uri, io.cucumber.gherkin.GherkinDialect dialect, CucumberQuery cucumberQuery)
  • Method Details

    • createCucumberSteps

      private static List<Step> createCucumberSteps(io.cucumber.messages.types.Pickle pickle, io.cucumber.gherkin.GherkinDialect dialect, CucumberQuery cucumberQuery)
    • getKeyword

      public String getKeyword()
      Specified by:
      getKeyword in interface Pickle
    • getLanguage

      public String getLanguage()
      Specified by:
      getLanguage in interface Pickle
    • getName

      public String getName()
      Specified by:
      getName in interface Pickle
    • getLocation

      public Location getLocation()
      Description copied from interface: Pickle
      Returns the location in the feature file of the Scenario this pickle was created from. If this pickle was created from a Scenario Outline this location is the location in the Example section used to fill in the place holders.
      Specified by:
      getLocation in interface Pickle
      Returns:
      location in the feature file
    • getScenarioLocation

      public Location getScenarioLocation()
      Description copied from interface: Pickle
      Returns the location in the feature file of the Scenario this pickle was created from. If this pickle was created from a Scenario Outline this location is that of the Scenario
      Specified by:
      getScenarioLocation in interface Pickle
      Returns:
      location in the feature file
    • getRuleLocation

      public Optional<Location> getRuleLocation()
      Description copied from interface: Pickle
      Returns the location in the feature file of the Rule this pickle was created from.
      Specified by:
      getRuleLocation in interface Pickle
      Returns:
      location in the feature file
    • getFeatureLocation

      public Optional<Location> getFeatureLocation()
      Description copied from interface: Pickle
      Returns the location in the feature file of the Feature this pickle was created from.
      Specified by:
      getFeatureLocation in interface Pickle
      Returns:
      location in the feature file
    • getExamplesLocation

      public Optional<Location> getExamplesLocation()
      Description copied from interface: Pickle
      Returns the location in the feature file of the examples this pickle was created from.
      Specified by:
      getExamplesLocation in interface Pickle
      Returns:
      location in the feature file
    • getSteps

      public List<Step> getSteps()
      Specified by:
      getSteps in interface Pickle
    • getTags

      public List<String> getTags()
      Specified by:
      getTags in interface Pickle
    • getUri

      public URI getUri()
      Specified by:
      getUri in interface Pickle
    • getId

      public String getId()
      Specified by:
      getId in interface Pickle