net.sf.jagg
Enum PropertyScanner.Token

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

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

Enumeration for the different types of Tokens.


Enum Constant Summary
TOKEN_COMMA
           
TOKEN_DOUBLE_QUOTE
           
TOKEN_EOI
           
TOKEN_ERROR_BUF_NULL
           
TOKEN_ERROR_EOI_IN_DQUOTES
           
TOKEN_ERROR_EOI_IN_SQUOTES
           
TOKEN_LEFT_PAREN
           
TOKEN_RIGHT_PAREN
           
TOKEN_SINGLE_QUOTE
           
TOKEN_STRING
           
TOKEN_UNKNOWN
           
TOKEN_WHITESPACE
           
 
Method Summary
 int getCode()
          Returns the unique code associated with this Token.
static PropertyScanner.Token valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static PropertyScanner.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_SQUOTES

public static final PropertyScanner.Token TOKEN_ERROR_EOI_IN_SQUOTES

TOKEN_ERROR_EOI_IN_DQUOTES

public static final PropertyScanner.Token TOKEN_ERROR_EOI_IN_DQUOTES

TOKEN_ERROR_BUF_NULL

public static final PropertyScanner.Token TOKEN_ERROR_BUF_NULL

TOKEN_UNKNOWN

public static final PropertyScanner.Token TOKEN_UNKNOWN

TOKEN_WHITESPACE

public static final PropertyScanner.Token TOKEN_WHITESPACE

TOKEN_STRING

public static final PropertyScanner.Token TOKEN_STRING

TOKEN_COMMA

public static final PropertyScanner.Token TOKEN_COMMA

TOKEN_DOUBLE_QUOTE

public static final PropertyScanner.Token TOKEN_DOUBLE_QUOTE

TOKEN_SINGLE_QUOTE

public static final PropertyScanner.Token TOKEN_SINGLE_QUOTE

TOKEN_LEFT_PAREN

public static final PropertyScanner.Token TOKEN_LEFT_PAREN

TOKEN_RIGHT_PAREN

public static final PropertyScanner.Token TOKEN_RIGHT_PAREN

TOKEN_EOI

public static final PropertyScanner.Token TOKEN_EOI
Method Detail

values

public static final PropertyScanner.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(PropertyScanner.Token c : PropertyScanner.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 PropertyScanner.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 © 2010-2013 jAgg Team. All Rights Reserved.