jodd.lagarto
Enum Token
java.lang.Object
java.lang.Enum<Token>
jodd.lagarto.Token
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<Token>
public enum Token
- extends java.lang.Enum<Token>
Lexer tokens.
|
Method Summary |
static Token |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Token[] |
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 |
UNKNOWN
public static final Token UNKNOWN
SLASH
public static final Token SLASH
WHITESPACE
public static final Token WHITESPACE
EQUALS
public static final Token EQUALS
QUOTE
public static final Token QUOTE
WORD
public static final Token WORD
TEXT
public static final Token TEXT
COMMENT
public static final Token COMMENT
DOCTYPE
public static final Token DOCTYPE
CDATA
public static final Token CDATA
XML_LT
public static final Token XML_LT
XML_GT
public static final Token XML_GT
LT
public static final Token LT
GT
public static final Token GT
CONDITIONAL_COMMENT_START
public static final Token CONDITIONAL_COMMENT_START
CONDITIONAL_COMMENT_END
public static final Token CONDITIONAL_COMMENT_END
EOF
public static final Token EOF
values
public static final Token[] 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(Token c : Token.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they're declared
valueOf
public static Token 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
Copyright © 2003-2011 Jodd Team