jxl.biff.formula
Class Token

java.lang.Object
  |
  +--jxl.biff.formula.Token

class Token
extends java.lang.Object

An enumeration detailing the Excel parsed tokens A particular token may be associated with more than one token code


Field Summary
static Token ADD
           
static Token AREA
           
static Token AREA3D
           
static Token AREAV
           
static Token ATTRIBUTE
           
static Token BOOL
           
static Token CONCAT
           
static Token DIVIDE
           
static Token DOUBLE
           
static Token EQUAL
           
static Token FUNCTION
           
static Token FUNCTIONVARARG
           
static Token GREATER_EQUAL
           
static Token GREATER_THAN
           
static Token INTEGER
           
static Token LESS_EQUAL
           
static Token LESS_THAN
           
static Token MISSING_ARG
           
static Token MULTIPLY
           
static Token NAME
           
static Token NOT_EQUAL
           
static Token PARENTHESIS
           
static Token PERCENT
           
static Token POWER
           
static Token REF
           
static Token REF3D
           
static Token REFV
           
static Token STRING
           
static Token SUBTRACT
           
private static java.util.HashMap tokens
          All available tokens, keyed on value
static Token UNARY_MINUS
           
static Token UNARY_PLUS
           
static Token UNKNOWN
           
 int[] value
          The array of values which apply to this token
 
Constructor Summary
private Token(int v)
          Constructor Sets the token value and adds this token to the array of all token
private Token(int v1, int v2)
          Constructor Sets the token value and adds this token to the array of all token
private Token(int v1, int v2, int v3)
          Constructor Sets the token value and adds this token to the array of all token
private Token(int v1, int v2, int v3, int v4)
          Constructor Sets the token value and adds this token to the array of all token
private Token(int v1, int v2, int v3, int v4, int v5)
          Constructor Sets the token value and adds this token to the array of all token
 
Method Summary
 byte getCode()
          Gets the token code for the specified token
static Token getToken(int v)
          Gets the type object from its integer value
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

value

public final int[] value
The array of values which apply to this token

tokens

private static java.util.HashMap tokens
All available tokens, keyed on value

REF

public static final Token REF

REF3D

public static final Token REF3D

MISSING_ARG

public static final Token MISSING_ARG

STRING

public static final Token STRING

BOOL

public static final Token BOOL

INTEGER

public static final Token INTEGER

DOUBLE

public static final Token DOUBLE

AREA

public static final Token AREA

NAME

public static final Token NAME

AREA3D

public static final Token AREA3D

REFV

public static final Token REFV

AREAV

public static final Token AREAV

UNARY_PLUS

public static final Token UNARY_PLUS

UNARY_MINUS

public static final Token UNARY_MINUS

PERCENT

public static final Token PERCENT

PARENTHESIS

public static final Token PARENTHESIS

ADD

public static final Token ADD

SUBTRACT

public static final Token SUBTRACT

MULTIPLY

public static final Token MULTIPLY

DIVIDE

public static final Token DIVIDE

POWER

public static final Token POWER

CONCAT

public static final Token CONCAT

LESS_THAN

public static final Token LESS_THAN

LESS_EQUAL

public static final Token LESS_EQUAL

EQUAL

public static final Token EQUAL

GREATER_EQUAL

public static final Token GREATER_EQUAL

GREATER_THAN

public static final Token GREATER_THAN

NOT_EQUAL

public static final Token NOT_EQUAL

FUNCTION

public static final Token FUNCTION

FUNCTIONVARARG

public static final Token FUNCTIONVARARG

ATTRIBUTE

public static final Token ATTRIBUTE

UNKNOWN

public static final Token UNKNOWN
Constructor Detail

Token

private Token(int v)
Constructor Sets the token value and adds this token to the array of all token
Parameters:
v - the biff code for the token

Token

private Token(int v1,
              int v2)
Constructor Sets the token value and adds this token to the array of all token
Parameters:
v - the biff code for the token

Token

private Token(int v1,
              int v2,
              int v3)
Constructor Sets the token value and adds this token to the array of all token
Parameters:
v - the biff code for the token

Token

private Token(int v1,
              int v2,
              int v3,
              int v4)
Constructor Sets the token value and adds this token to the array of all token
Parameters:
v - the biff code for the token

Token

private Token(int v1,
              int v2,
              int v3,
              int v4,
              int v5)
Constructor Sets the token value and adds this token to the array of all token
Parameters:
v - the biff code for the token
Method Detail

getCode

public byte getCode()
Gets the token code for the specified token
Returns:
the token code. This is the first item in the array

getToken

public static Token getToken(int v)
Gets the type object from its integer value