public enum TokenType extends Enum<TokenType>
Enum Constant and Description |
---|
COLON |
COMMA |
DOUBLE |
EOF |
ERROR |
FALSE |
INTEGER |
LCURLY |
LSQUARE |
NULL |
RCURLY |
RSQUARE |
STRING |
TRUE |
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 LCURLY
public static final TokenType RCURLY
public static final TokenType LSQUARE
public static final TokenType RSQUARE
public static final TokenType COMMA
public static final TokenType COLON
public static final TokenType STRING
public static final TokenType INTEGER
public static final TokenType DOUBLE
public static final TokenType TRUE
public static final TokenType FALSE
public static final TokenType NULL
public static final TokenType ERROR
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 © 2024. All rights reserved.