|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<Token.Type> simple.lexer.Token.Type
public static enum Token.Type
Enum Constant Summary | |
---|---|
EOF
Has static value " $ ". |
|
FACTOP
No static value; should be " * " or "/ ". |
|
LPAREN
Has static value " ( ". |
|
NUMBER
No static value; should be " [0-9] ". |
|
RPAREN
Has static value " ) ". |
|
TERMOP
No static value; should be " + " or "- ". |
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're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Token.Type LPAREN
(
".
public static final Token.Type RPAREN
)
".
public static final Token.Type TERMOP
+
" or "-
".
public static final Token.Type FACTOP
*
" or "/
".
public static final Token.Type NUMBER
[0-9]
".
public static final Token.Type EOF
$
".
Method Detail |
---|
public static final Token.Type[] values()
for(Token.Type c : Token.Type.values()) System.out.println(c);
public static Token.Type 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 name
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |