|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<TokenType>
org.millscript.millscript.syntax.TokenType
public enum TokenType
This enumeration describes the valid types of token that can be generated by the tokenizer.
| Enum Constant Summary | |
|---|---|
EOF
Used to indicate we've reached the end of file. |
|
INTEGER
Used to indicate the current token is an integer. |
|
NAME
Used to indicate the current token is a name. |
|
NEED_NEW
Used to indicate when we need a new token. |
|
STRING
Used to indicate the current token is a string. |
|
TRADITIONAL_REGEX
Used to indicate the current token is a traditional regular expression token. |
|
| Method Summary | |
|---|---|
static TokenType |
valueOf(java.lang.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'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 TokenType EOF
public static final TokenType INTEGER
public static final TokenType NAME
public static final TokenType NEED_NEW
public static final TokenType STRING
public static final TokenType TRADITIONAL_REGEX
| Method Detail |
|---|
public static final TokenType[] values()
for(TokenType c : TokenType.values())
System.out.println(c);
public static TokenType 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 | |||||||||