Enum Class Parser.RuleType

java.lang.Object
java.lang.Enum<Parser.RuleType>
io.cucumber.gherkin.Parser.RuleType
All Implemented Interfaces:
Serializable, Comparable<Parser.RuleType>, Constable
Enclosing class:
Parser<T>

static enum Parser.RuleType extends Enum<Parser.RuleType>
  • Enum Constant Details

    • None

      public static final Parser.RuleType None
    • _EOF

      public static final Parser.RuleType _EOF
      #EOF
    • _Empty

      public static final Parser.RuleType _Empty
      #Empty
    • _Comment

      public static final Parser.RuleType _Comment
      #Comment
    • _TagLine

      public static final Parser.RuleType _TagLine
      #TagLine
    • _FeatureLine

      public static final Parser.RuleType _FeatureLine
      #FeatureLine
    • _RuleLine

      public static final Parser.RuleType _RuleLine
      #RuleLine
    • _BackgroundLine

      public static final Parser.RuleType _BackgroundLine
      #BackgroundLine
    • _ScenarioLine

      public static final Parser.RuleType _ScenarioLine
      #ScenarioLine
    • _ExamplesLine

      public static final Parser.RuleType _ExamplesLine
      #ExamplesLine
    • _StepLine

      public static final Parser.RuleType _StepLine
      #StepLine
    • _DocStringSeparator

      public static final Parser.RuleType _DocStringSeparator
      #DocStringSeparator
    • _TableRow

      public static final Parser.RuleType _TableRow
      #TableRow
    • _Language

      public static final Parser.RuleType _Language
      #Language
    • _Other

      public static final Parser.RuleType _Other
      #Other
    • GherkinDocument

      public static final Parser.RuleType GherkinDocument
      GherkinDocument! := Feature?
    • Feature

      public static final Parser.RuleType Feature
      Feature! := FeatureHeader Background? ScenarioDefinition* Rule*
    • FeatureHeader

      public static final Parser.RuleType FeatureHeader
      FeatureHeader! := #Language? Tags? #FeatureLine DescriptionHelper
    • Rule

      public static final Parser.RuleType Rule
      Rule! := RuleHeader Background? ScenarioDefinition*
    • RuleHeader

      public static final Parser.RuleType RuleHeader
      RuleHeader! := Tags? #RuleLine DescriptionHelper
    • Background

      public static final Parser.RuleType Background
      Background! := #BackgroundLine DescriptionHelper Step*
    • ScenarioDefinition

      public static final Parser.RuleType ScenarioDefinition
      ScenarioDefinition! [#Empty|#Comment|#TagLine->#ScenarioLine] := Tags? Scenario
    • Scenario

      public static final Parser.RuleType Scenario
      Scenario! := #ScenarioLine DescriptionHelper Step* ExamplesDefinition*
    • ExamplesDefinition

      public static final Parser.RuleType ExamplesDefinition
      ExamplesDefinition! [#Empty|#Comment|#TagLine->#ExamplesLine] := Tags? Examples
    • Examples

      public static final Parser.RuleType Examples
      Examples! := #ExamplesLine DescriptionHelper ExamplesTable?
    • ExamplesTable

      public static final Parser.RuleType ExamplesTable
      ExamplesTable! := #TableRow #TableRow*
    • Step

      public static final Parser.RuleType Step
      Step! := #StepLine StepArg?
    • StepArg

      public static final Parser.RuleType StepArg
      StepArg := (DataTableAndMaybeDocString | DocStringAndMaybeDataTable)
    • DataTableAndMaybeDocString

      public static final Parser.RuleType DataTableAndMaybeDocString
      DataTableAndMaybeDocString := DataTable DocString?
    • DocStringAndMaybeDataTable

      public static final Parser.RuleType DocStringAndMaybeDataTable
      DocStringAndMaybeDataTable := DocString DataTable?
    • DataTable

      public static final Parser.RuleType DataTable
      DataTable! := #TableRow+
    • DocString

      public static final Parser.RuleType DocString
      DocString! := #DocStringSeparator #Other* #DocStringSeparator
    • Tags

      public static final Parser.RuleType Tags
      Tags! := #TagLine+
    • DescriptionHelper

      public static final Parser.RuleType DescriptionHelper
      DescriptionHelper := #Empty* Description?
    • Description

      public static final Parser.RuleType Description
      Description! := (#Other | #Comment)+
  • Constructor Details

    • RuleType

      private RuleType()
  • Method Details

    • values

      public static Parser.RuleType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Parser.RuleType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null