- All Implemented Interfaces:
Serializable,Comparable<Parser.RuleType>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription#BackgroundLine#Comment#DocStringSeparator#Empty#EOF#ExamplesLine#FeatureLine#Language#Other#RuleLine#ScenarioLine#StepLine#TableRow#TagLineBackground! := #BackgroundLine DescriptionHelper Step*DataTable! := #TableRow+DataTableAndMaybeDocString := DataTable DocString?Description! := (#Other | #Comment)+DescriptionHelper := #Empty* Description?DocString! := #DocStringSeparator #Other* #DocStringSeparatorDocStringAndMaybeDataTable := DocString DataTable?Examples! := #ExamplesLine DescriptionHelper ExamplesTable?ExamplesDefinition! [#Empty|#Comment|#TagLine->#ExamplesLine] := Tags? ExamplesExamplesTable! := #TableRow #TableRow*Feature! := FeatureHeader Background? ScenarioDefinition* Rule*FeatureHeader! := #Language? Tags? #FeatureLine DescriptionHelperGherkinDocument! := Feature?Rule! := RuleHeader Background? ScenarioDefinition*RuleHeader! := Tags? #RuleLine DescriptionHelperScenario! := #ScenarioLine DescriptionHelper Step* ExamplesDefinition*ScenarioDefinition! [#Empty|#Comment|#TagLine->#ScenarioLine] := Tags? ScenarioStep! := #StepLine StepArg?StepArg := (DataTableAndMaybeDocString | DocStringAndMaybeDataTable)Tags! := #TagLine+ -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Parser.RuleTypeReturns the enum constant of this class with the specified name.static Parser.RuleType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
None
-
_EOF
#EOF -
_Empty
#Empty -
_Comment
#Comment -
_TagLine
#TagLine -
_FeatureLine
#FeatureLine -
_RuleLine
#RuleLine -
_BackgroundLine
#BackgroundLine -
_ScenarioLine
#ScenarioLine -
_ExamplesLine
#ExamplesLine -
_StepLine
#StepLine -
_DocStringSeparator
#DocStringSeparator -
_TableRow
#TableRow -
_Language
#Language -
_Other
#Other -
GherkinDocument
GherkinDocument! := Feature? -
Feature
Feature! := FeatureHeader Background? ScenarioDefinition* Rule* -
FeatureHeader
FeatureHeader! := #Language? Tags? #FeatureLine DescriptionHelper -
Rule
Rule! := RuleHeader Background? ScenarioDefinition* -
RuleHeader
RuleHeader! := Tags? #RuleLine DescriptionHelper -
Background
Background! := #BackgroundLine DescriptionHelper Step* -
ScenarioDefinition
ScenarioDefinition! [#Empty|#Comment|#TagLine->#ScenarioLine] := Tags? Scenario -
Scenario
Scenario! := #ScenarioLine DescriptionHelper Step* ExamplesDefinition* -
ExamplesDefinition
ExamplesDefinition! [#Empty|#Comment|#TagLine->#ExamplesLine] := Tags? Examples -
Examples
Examples! := #ExamplesLine DescriptionHelper ExamplesTable? -
ExamplesTable
ExamplesTable! := #TableRow #TableRow* -
Step
Step! := #StepLine StepArg? -
StepArg
StepArg := (DataTableAndMaybeDocString | DocStringAndMaybeDataTable) -
DataTableAndMaybeDocString
DataTableAndMaybeDocString := DataTable DocString? -
DocStringAndMaybeDataTable
DocStringAndMaybeDataTable := DocString DataTable? -
DataTable
DataTable! := #TableRow+ -
DocString
DocString! := #DocStringSeparator #Other* #DocStringSeparator -
Tags
Tags! := #TagLine+ -
DescriptionHelper
DescriptionHelper := #Empty* Description? -
Description
Description! := (#Other | #Comment)+
-
-
Constructor Details
-
RuleType
private RuleType()
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-