org.sitemesh.tagprocessor
Enum TagTokenizer.Token

java.lang.Object
  extended by java.lang.Enum<TagTokenizer.Token>
      extended by org.sitemesh.tagprocessor.TagTokenizer.Token
All Implemented Interfaces:
Serializable, Comparable<TagTokenizer.Token>
Enclosing class:
TagTokenizer

public static enum TagTokenizer.Token
extends Enum<TagTokenizer.Token>


Enum Constant Summary
EOF
           
EQUALS
           
GT
           
LT
           
LT_CLOSE_MAGIC_COMMENT
           
LT_OPEN_MAGIC_COMMENT
           
QUOTE
           
QUOTED
           
SLASH
           
TEXT
           
UNKNOWN
           
WHITESPACE
           
WORD
           
 
Method Summary
static TagTokenizer.Token valueOf(String name)
          Returns the enum constant of this type with the specified name.
static TagTokenizer.Token[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

UNKNOWN

public static final TagTokenizer.Token UNKNOWN

SLASH

public static final TagTokenizer.Token SLASH

WHITESPACE

public static final TagTokenizer.Token WHITESPACE

EQUALS

public static final TagTokenizer.Token EQUALS

QUOTE

public static final TagTokenizer.Token QUOTE

WORD

public static final TagTokenizer.Token WORD

TEXT

public static final TagTokenizer.Token TEXT

QUOTED

public static final TagTokenizer.Token QUOTED

LT

public static final TagTokenizer.Token LT

GT

public static final TagTokenizer.Token GT

LT_OPEN_MAGIC_COMMENT

public static final TagTokenizer.Token LT_OPEN_MAGIC_COMMENT

LT_CLOSE_MAGIC_COMMENT

public static final TagTokenizer.Token LT_CLOSE_MAGIC_COMMENT

EOF

public static final TagTokenizer.Token EOF
Method Detail

values

public static TagTokenizer.Token[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (TagTokenizer.Token c : TagTokenizer.Token.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static TagTokenizer.Token valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2011. All Rights Reserved.