edu.iu.cnets.klatsch.parser
Enum Token.Type
java.lang.Object
java.lang.Enum<Token.Type>
edu.iu.cnets.klatsch.parser.Token.Type
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<Token.Type>
- Enclosing class:
- Token
public static enum Token.Type
- extends java.lang.Enum<Token.Type>
Method Summary |
static Token.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Token.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
EOF
public static final Token.Type EOF
AND
public static final Token.Type AND
ASSIGN
public static final Token.Type ASSIGN
COLON
public static final Token.Type COLON
COMMA
public static final Token.Type COMMA
COMMENT
public static final Token.Type COMMENT
DIVIDE
public static final Token.Type DIVIDE
DOT
public static final Token.Type DOT
EQ
public static final Token.Type EQ
GEQ
public static final Token.Type GEQ
GT
public static final Token.Type GT
ID
public static final Token.Type ID
KEYWORD
public static final Token.Type KEYWORD
LEQ
public static final Token.Type LEQ
LBRACE
public static final Token.Type LBRACE
LBRACKET
public static final Token.Type LBRACKET
LPAREN
public static final Token.Type LPAREN
LT
public static final Token.Type LT
MINUS
public static final Token.Type MINUS
MOD
public static final Token.Type MOD
NEQ
public static final Token.Type NEQ
NOT
public static final Token.Type NOT
NUMBER
public static final Token.Type NUMBER
OR
public static final Token.Type OR
PLUS
public static final Token.Type PLUS
POWER
public static final Token.Type POWER
RBRACE
public static final Token.Type RBRACE
RBRACKET
public static final Token.Type RBRACKET
RPAREN
public static final Token.Type RPAREN
SEMICOLON
public static final Token.Type SEMICOLON
STRING
public static final Token.Type STRING
TIMES
public static final Token.Type TIMES
values
public static Token.Type[] 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 (Token.Type c : Token.Type.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Token.Type valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null