public enum TokenType extends Enum<TokenType>
| Enum Constant and Description |
|---|
BYTE_KWD |
CHAR_LITERAL |
DOUBLE_LITERAL |
EMPTY_KWD |
EOF |
FALSE_KWD |
FLOAT_LITERAL |
INT_LITERAL |
LONG_LITERAL |
LPAR |
MINUS |
NULL_KWD |
RPAR |
SHORT_KWD |
STRING_LITERAL |
TRUE_KWD |
VOID_KWD |
| Modifier and Type | Method and Description |
|---|---|
static TokenType |
valueOf(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.
|
public static final TokenType LPAR
public static final TokenType RPAR
public static final TokenType MINUS
public static final TokenType NULL_KWD
public static final TokenType VOID_KWD
public static final TokenType FALSE_KWD
public static final TokenType TRUE_KWD
public static final TokenType BYTE_KWD
public static final TokenType SHORT_KWD
public static final TokenType EMPTY_KWD
public static final TokenType INT_LITERAL
public static final TokenType LONG_LITERAL
public static final TokenType FLOAT_LITERAL
public static final TokenType DOUBLE_LITERAL
public static final TokenType CHAR_LITERAL
public static final TokenType STRING_LITERAL
public static final TokenType EOF
public static TokenType[] values()
for (TokenType c : TokenType.values()) System.out.println(c);
public static TokenType 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 nullCopyright © 2018 eu.stamp-project. All rights reserved.