Package io.cucumber.gherkin
Enum Parser.TokenType
- java.lang.Object
-
- java.lang.Enum<Parser.TokenType>
-
- io.cucumber.gherkin.Parser.TokenType
-
- All Implemented Interfaces:
Serializable,Comparable<Parser.TokenType>
public static enum Parser.TokenType extends Enum<Parser.TokenType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BackgroundLineCommentDocStringSeparatorEmptyEOFExamplesLineFeatureLineLanguageNoneOtherRuleLineScenarioLineStepLineTableRowTagLine
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Parser.TokenTypevalueOf(String name)Returns the enum constant of this type with the specified name.static Parser.TokenType[]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.TokenType None
-
EOF
public static final Parser.TokenType EOF
-
Empty
public static final Parser.TokenType Empty
-
Comment
public static final Parser.TokenType Comment
-
TagLine
public static final Parser.TokenType TagLine
-
FeatureLine
public static final Parser.TokenType FeatureLine
-
RuleLine
public static final Parser.TokenType RuleLine
-
BackgroundLine
public static final Parser.TokenType BackgroundLine
-
ScenarioLine
public static final Parser.TokenType ScenarioLine
-
ExamplesLine
public static final Parser.TokenType ExamplesLine
-
StepLine
public static final Parser.TokenType StepLine
-
DocStringSeparator
public static final Parser.TokenType DocStringSeparator
-
TableRow
public static final Parser.TokenType TableRow
-
Language
public static final Parser.TokenType Language
-
Other
public static final Parser.TokenType Other
-
-
Method Detail
-
values
public static Parser.TokenType[] 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.TokenType c : Parser.TokenType.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.TokenType 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
-
-