Enum Class TokenKind
- All Implemented Interfaces:
Serializable,Comparable<TokenKind>,Constable
Classification of token types.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBinary operators.[] () {}Identifier or contextual keyword.Token reserved for future usage.Token reserved for future in strict mode.IR only token.String recognized as a keyword.Literal constant.Error, EOF, EOL...Unary operators. -
Method Summary
-
Enum Constant Details
-
SPECIAL
Error, EOF, EOL... -
UNARY
Unary operators. -
BINARY
Binary operators. -
BRACKET
[] () {} -
KEYWORD
String recognized as a keyword. -
LITERAL
Literal constant. -
IR
IR only token. -
FUTURE
Token reserved for future usage. -
FUTURESTRICT
Token reserved for future in strict mode. -
CONTEXTUAL
Identifier or contextual keyword.
-
-
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
-