Enum TokenType
- java.lang.Object
-
- java.lang.Enum<TokenType>
-
- com.github.fridujo.glacio.parsing.lexer.TokenType
-
- All Implemented Interfaces:
Serializable,Comparable<TokenType>
public enum TokenType extends Enum<TokenType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANDBACKGROUNDCOLONCOMMENT_DELIMITERDEDENTDOC_STRING_DELIMITEREOFEOLEXAMPLESFEATUREGIVENINDENTSCENARIOSCENARIO_OUTLINESPACETABLE_DELIMITERTAG_DELIMITERTEXTTHENWHEN
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TokenTypevalueOf(String name)Returns the enum constant of this type with the specified name.static TokenType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INDENT
public static final TokenType INDENT
-
DEDENT
public static final TokenType DEDENT
-
EOL
public static final TokenType EOL
-
EOF
public static final TokenType EOF
-
SPACE
public static final TokenType SPACE
-
COLON
public static final TokenType COLON
-
TAG_DELIMITER
public static final TokenType TAG_DELIMITER
-
DOC_STRING_DELIMITER
public static final TokenType DOC_STRING_DELIMITER
-
TABLE_DELIMITER
public static final TokenType TABLE_DELIMITER
-
COMMENT_DELIMITER
public static final TokenType COMMENT_DELIMITER
-
TEXT
public static final TokenType TEXT
-
FEATURE
public static final TokenType FEATURE
-
BACKGROUND
public static final TokenType BACKGROUND
-
SCENARIO_OUTLINE
public static final TokenType SCENARIO_OUTLINE
-
SCENARIO
public static final TokenType SCENARIO
-
GIVEN
public static final TokenType GIVEN
-
WHEN
public static final TokenType WHEN
-
THEN
public static final TokenType THEN
-
AND
public static final TokenType AND
-
EXAMPLES
public static final TokenType EXAMPLES
-
-
Method Detail
-
values
public static 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 (TokenType c : 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 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
-
-