Enum Constant and Description |
---|
BECOMES |
BEGIN |
CLASS |
COLON |
COMMA |
DIV |
DO |
END |
EOF |
EQ |
GT |
GTEQ |
IDENT |
IF |
IS |
LPAREN |
LT |
LTEQ |
METHOD |
MINUS |
MOD |
NEQ |
NEW |
NULL |
NUMBER |
PERIOD |
PLUS |
READ |
RPAREN |
SELF |
SEMICOLON |
THEN |
TIMES |
WHILE |
WRITE |
Modifier and Type | Method and Description |
---|---|
static Symbol.Id |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Symbol.Id[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Symbol.Id IDENT
public static final Symbol.Id NUMBER
public static final Symbol.Id BEGIN
public static final Symbol.Id END
public static final Symbol.Id CLASS
public static final Symbol.Id IS
public static final Symbol.Id METHOD
public static final Symbol.Id READ
public static final Symbol.Id WRITE
public static final Symbol.Id IF
public static final Symbol.Id THEN
public static final Symbol.Id WHILE
public static final Symbol.Id DO
public static final Symbol.Id COLON
public static final Symbol.Id SEMICOLON
public static final Symbol.Id COMMA
public static final Symbol.Id PERIOD
public static final Symbol.Id LPAREN
public static final Symbol.Id RPAREN
public static final Symbol.Id EQ
public static final Symbol.Id NEQ
public static final Symbol.Id GT
public static final Symbol.Id GTEQ
public static final Symbol.Id LT
public static final Symbol.Id LTEQ
public static final Symbol.Id PLUS
public static final Symbol.Id MINUS
public static final Symbol.Id TIMES
public static final Symbol.Id DIV
public static final Symbol.Id MOD
public static final Symbol.Id BECOMES
public static final Symbol.Id NEW
public static final Symbol.Id SELF
public static final Symbol.Id NULL
public static final Symbol.Id EOF
public static Symbol.Id[] values()
for (Symbol.Id c : Symbol.Id.values()) System.out.println(c);
public static Symbol.Id valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is null