Package io.cucumber.gherkin
Enum Parser.RuleType
- java.lang.Object
-
- java.lang.Enum<Parser.RuleType>
-
- io.cucumber.gherkin.Parser.RuleType
-
- All Implemented Interfaces:
Serializable,Comparable<Parser.RuleType>
public static enum Parser.RuleType extends Enum<Parser.RuleType>
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Parser.RuleTypecast(Parser.TokenType tokenType)static Parser.RuleTypevalueOf(String name)Returns the enum constant of this type with the specified name.static Parser.RuleType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
None
public static final Parser.RuleType None
-
_EOF
public static final Parser.RuleType _EOF
-
_Empty
public static final Parser.RuleType _Empty
-
_Comment
public static final Parser.RuleType _Comment
-
_TagLine
public static final Parser.RuleType _TagLine
-
_FeatureLine
public static final Parser.RuleType _FeatureLine
-
_RuleLine
public static final Parser.RuleType _RuleLine
-
_BackgroundLine
public static final Parser.RuleType _BackgroundLine
-
_ScenarioLine
public static final Parser.RuleType _ScenarioLine
-
_ExamplesLine
public static final Parser.RuleType _ExamplesLine
-
_StepLine
public static final Parser.RuleType _StepLine
-
_DocStringSeparator
public static final Parser.RuleType _DocStringSeparator
-
_TableRow
public static final Parser.RuleType _TableRow
-
_Language
public static final Parser.RuleType _Language
-
_Other
public static final Parser.RuleType _Other
-
GherkinDocument
public static final Parser.RuleType GherkinDocument
-
Feature
public static final Parser.RuleType Feature
-
FeatureHeader
public static final Parser.RuleType FeatureHeader
-
Rule
public static final Parser.RuleType Rule
-
RuleHeader
public static final Parser.RuleType RuleHeader
-
Background
public static final Parser.RuleType Background
-
ScenarioDefinition
public static final Parser.RuleType ScenarioDefinition
-
Scenario
public static final Parser.RuleType Scenario
-
ExamplesDefinition
public static final Parser.RuleType ExamplesDefinition
-
Examples
public static final Parser.RuleType Examples
-
ExamplesTable
public static final Parser.RuleType ExamplesTable
-
Step
public static final Parser.RuleType Step
-
StepArg
public static final Parser.RuleType StepArg
-
DataTable
public static final Parser.RuleType DataTable
-
DocString
public static final Parser.RuleType DocString
-
Tags
public static final Parser.RuleType Tags
-
DescriptionHelper
public static final Parser.RuleType DescriptionHelper
-
Description
public static final Parser.RuleType Description
-
-
Method Detail
-
values
public static Parser.RuleType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Parser.RuleType c : Parser.RuleType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Parser.RuleType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
cast
public static Parser.RuleType cast(Parser.TokenType tokenType)
-
-