net.sf.jett.parser
Enum FormulaScanner.Token

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

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

Enumeration for the different types of Tokens in Formulas.


Enum Constant Summary
TOKEN_COMMA
           
TOKEN_DOUBLE_PIPE
           
TOKEN_DOUBLE_QUOTE
           
TOKEN_EOI
           
TOKEN_ERROR_BUF_NULL
           
TOKEN_ERROR_EOI_IN_DQUOTES
           
TOKEN_ERROR_EOI_IN_SQUOTES
           
TOKEN_EXCLAMATION
           
TOKEN_LEFT_PAREN
           
TOKEN_OPERATOR
           
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 FormulaScanner.Token valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static FormulaScanner.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 FormulaScanner.Token TOKEN_ERROR_EOI_IN_SQUOTES

TOKEN_ERROR_EOI_IN_DQUOTES

public static final FormulaScanner.Token TOKEN_ERROR_EOI_IN_DQUOTES

TOKEN_ERROR_BUF_NULL

public static final FormulaScanner.Token TOKEN_ERROR_BUF_NULL

TOKEN_UNKNOWN

public static final FormulaScanner.Token TOKEN_UNKNOWN

TOKEN_WHITESPACE

public static final FormulaScanner.Token TOKEN_WHITESPACE

TOKEN_STRING

public static final FormulaScanner.Token TOKEN_STRING

TOKEN_SINGLE_QUOTE

public static final FormulaScanner.Token TOKEN_SINGLE_QUOTE

TOKEN_DOUBLE_QUOTE

public static final FormulaScanner.Token TOKEN_DOUBLE_QUOTE

TOKEN_EXCLAMATION

public static final FormulaScanner.Token TOKEN_EXCLAMATION

TOKEN_LEFT_PAREN

public static final FormulaScanner.Token TOKEN_LEFT_PAREN

TOKEN_RIGHT_PAREN

public static final FormulaScanner.Token TOKEN_RIGHT_PAREN

TOKEN_COMMA

public static final FormulaScanner.Token TOKEN_COMMA

TOKEN_DOUBLE_PIPE

public static final FormulaScanner.Token TOKEN_DOUBLE_PIPE

TOKEN_OPERATOR

public static final FormulaScanner.Token TOKEN_OPERATOR

TOKEN_EOI

public static final FormulaScanner.Token TOKEN_EOI
Method Detail

values

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