net.sf.jexpel.internal.parser
Enum TokenType
java.lang.Object
java.lang.Enum<TokenType>
net.sf.jexpel.internal.parser.TokenType
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<TokenType>
public enum TokenType
- extends java.lang.Enum<TokenType>
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 |
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
BLANK
public static final TokenType BLANK
STRING
public static final TokenType STRING
INTNUMBER
public static final TokenType INTNUMBER
LONGNUMBER
public static final TokenType LONGNUMBER
FLOATNUMBER
public static final TokenType FLOATNUMBER
DOUBLENUMBER
public static final TokenType DOUBLENUMBER
IDENTIFIER
public static final TokenType IDENTIFIER
BOOLEAN
public static final TokenType BOOLEAN
NULL
public static final TokenType NULL
CLASS
public static final TokenType CLASS
OPERATOR
public static final TokenType OPERATOR
values
public static final TokenType[] values()
- Returns an array containing the constants of this enum type, in
the order they're declared. This method may be used to iterate
over the constants as follows:
for(TokenType c : TokenType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they're declared
valueOf
public static TokenType 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