jodd.lagarto
Enum Token

java.lang.Object
  extended by java.lang.Enum<Token>
      extended by jodd.lagarto.Token
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Token>

public enum Token
extends java.lang.Enum<Token>

Lexer tokens.


Enum Constant Summary
CDATA
           
COMMENT
           
CONDITIONAL_COMMENT_END
           
CONDITIONAL_COMMENT_START
           
DOCTYPE
           
EOF
           
EQUALS
           
GT
           
LT
           
QUOTE
           
SLASH
           
TEXT
           
UNKNOWN
           
WHITESPACE
           
WORD
           
XML_GT
           
XML_LT
           
 
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
 

Enum Constant Detail

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
Method Detail

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-2012 Jodd Team