public enum TokenKind extends Enum<TokenKind>
Enum.EnumDesc<E extends Enum<E>>| Enum Constant and Description |
|---|
BINARY
Binary operators.
|
BRACKET
[] () {}
|
CONTEXTUAL
Identifier or contextual keyword.
|
FUTURE
Token reserved for future usage.
|
FUTURESTRICT
Token reserved for future in strict mode.
|
IR
IR only token.
|
KEYWORD
String recognized as a keyword.
|
LITERAL
Literal constant.
|
SPECIAL
Error, EOF, EOL...
|
UNARY
Unary operators.
|
| Modifier and Type | Method and Description |
|---|---|
static TokenKind |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TokenKind[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TokenKind SPECIAL
public static final TokenKind UNARY
public static final TokenKind BINARY
public static final TokenKind BRACKET
public static final TokenKind KEYWORD
public static final TokenKind LITERAL
public static final TokenKind IR
public static final TokenKind FUTURE
public static final TokenKind FUTURESTRICT
public static final TokenKind CONTEXTUAL
public static TokenKind[] values()
public static TokenKind valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is null