net.sf.jett.parser
Enum TagScanner.Token

java.lang.Object
  extended by java.lang.Enum<TagScanner.Token>
      extended by net.sf.jett.parser.TagScanner.Token
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<TagScanner.Token>
Enclosing class:
TagScanner

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

Enumeration for the different types of Tokens in Tags.


Enum Constant Summary
TOKEN_BEGIN_ANGLE_BRACKET
           
TOKEN_BEGIN_ANGLE_BRACKET_SLASH
           
TOKEN_COLON
           
TOKEN_DOUBLE_QUOTE
           
TOKEN_END_ANGLE_BRACKET
           
TOKEN_EOI
           
TOKEN_EQUALS
           
TOKEN_ERROR_BUF_NULL
           
TOKEN_ERROR_EOI_IN_DQUOTES
           
TOKEN_SLASH_END_ANGLE_BRACKET
           
TOKEN_STRING
           
TOKEN_UNKNOWN
           
TOKEN_WHITESPACE
           
 
Method Summary
 int getCode()
          Returns the unique code associated with this Token.
static TagScanner.Token valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static TagScanner.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

TOKEN_ERROR_EOI_IN_DQUOTES

public static final TagScanner.Token TOKEN_ERROR_EOI_IN_DQUOTES

TOKEN_ERROR_BUF_NULL

public static final TagScanner.Token TOKEN_ERROR_BUF_NULL

TOKEN_UNKNOWN

public static final TagScanner.Token TOKEN_UNKNOWN

TOKEN_WHITESPACE

public static final TagScanner.Token TOKEN_WHITESPACE

TOKEN_STRING

public static final TagScanner.Token TOKEN_STRING

TOKEN_COLON

public static final TagScanner.Token TOKEN_COLON

TOKEN_DOUBLE_QUOTE

public static final TagScanner.Token TOKEN_DOUBLE_QUOTE

TOKEN_BEGIN_ANGLE_BRACKET

public static final TagScanner.Token TOKEN_BEGIN_ANGLE_BRACKET

TOKEN_BEGIN_ANGLE_BRACKET_SLASH

public static final TagScanner.Token TOKEN_BEGIN_ANGLE_BRACKET_SLASH

TOKEN_END_ANGLE_BRACKET

public static final TagScanner.Token TOKEN_END_ANGLE_BRACKET

TOKEN_SLASH_END_ANGLE_BRACKET

public static final TagScanner.Token TOKEN_SLASH_END_ANGLE_BRACKET

TOKEN_EQUALS

public static final TagScanner.Token TOKEN_EQUALS

TOKEN_EOI

public static final TagScanner.Token TOKEN_EOI
Method Detail

values

public static final TagScanner.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(TagScanner.Token c : TagScanner.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 TagScanner.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

getCode

public int getCode()
Returns the unique code associated with this Token.

Returns:
The unique code.


Copyright © 2012-2013 Jett Team. All Rights Reserved.