tip.node
Enum TokenEnum
java.lang.Object
java.lang.Enum<TokenEnum>
tip.node.TokenEnum
- All Implemented Interfaces:
- Serializable, Comparable<TokenEnum>
public enum TokenEnum
- extends Enum<TokenEnum>
Method Summary |
static TokenEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static TokenEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
IF
public static final TokenEnum IF
COMMENTBLOCK
public static final TokenEnum COMMENTBLOCK
SEMICOLON
public static final TokenEnum SEMICOLON
VAR
public static final TokenEnum VAR
ELSE
public static final TokenEnum ELSE
RPAR
public static final TokenEnum RPAR
RBRACE
public static final TokenEnum RBRACE
COMMENTSINGLE
public static final TokenEnum COMMENTSINGLE
STAR
public static final TokenEnum STAR
DIV
public static final TokenEnum DIV
MALLOC
public static final TokenEnum MALLOC
PLUS
public static final TokenEnum PLUS
EQ
public static final TokenEnum EQ
MINUS
public static final TokenEnum MINUS
GT
public static final TokenEnum GT
AND
public static final TokenEnum AND
INTEGERCONST
public static final TokenEnum INTEGERCONST
_EOF_
public static final TokenEnum _EOF_
WHILE
public static final TokenEnum WHILE
OUTPUT
public static final TokenEnum OUTPUT
ASSIGN
public static final TokenEnum ASSIGN
NULL
public static final TokenEnum NULL
COMMA
public static final TokenEnum COMMA
INPUT
public static final TokenEnum INPUT
RETURN
public static final TokenEnum RETURN
LPAR
public static final TokenEnum LPAR
IDENTIFIER
public static final TokenEnum IDENTIFIER
WHITESPACE
public static final TokenEnum WHITESPACE
LBRACE
public static final TokenEnum LBRACE
values
public static TokenEnum[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (TokenEnum c : TokenEnum.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static TokenEnum valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (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 type has no constant
with the specified name
NullPointerException
- if the argument is null