jwo.utils.expression
Class MathToken

java.lang.Object
  extended byjwo.utils.expression.MathToken

public final class MathToken
extends Object

Stores an enumerated list of tokens that may be parsed by the MathParser. Includes arithmetical, trig operators, variable substitution and parenthases. Modified from original code described at www.devx.com/premier/mgznarch/javapro/2001/05may01/ps0105/ps0105.asp.

Version:
2.2, 16th February, 2001, modified 4th August, 2004.
Author:
Daniel Savarese, modified by Jo Wood.

Field Summary
static String LEX_ACOS
           
static String LEX_ADD
           
static String LEX_ASIN
           
static String LEX_ATAN
           
static String LEX_CLOSE_PAREN
           
static String LEX_COS
           
static String LEX_DIVIDE
           
static String LEX_E
           
static String LEX_EXPONENT
           
static String LEX_GAUSS
           
static String LEX_LN
           
static String LEX_MULTIPLY
           
static String LEX_OPEN_PAREN
           
static String LEX_PI
           
static String LEX_RAND
           
static String LEX_SIN
           
static String LEX_SQRT
           
static String LEX_SUBTRACT
           
static String LEX_TAN
           
static String LEX_X
           
static String LEX_Y
           
static String LEX_Z1
           
static String LEX_Z2
           
static MathToken TOK_ADDITIVE
           
static MathToken TOK_CLOSE_PAREN
           
static MathToken TOK_EXPONENT
           
static MathToken TOK_FUNC
           
static MathToken TOK_MULTIPLICATIVE
           
static MathToken TOK_NUMBER
           
static MathToken TOK_OPEN_PAREN
           
static MathToken TOK_VARIABLE
           
static Object[][] TOKENS
           
 
Constructor Summary
MathToken()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LEX_ADD

public static final String LEX_ADD
See Also:
Constant Field Values

LEX_SUBTRACT

public static final String LEX_SUBTRACT
See Also:
Constant Field Values

LEX_MULTIPLY

public static final String LEX_MULTIPLY
See Also:
Constant Field Values

LEX_DIVIDE

public static final String LEX_DIVIDE
See Also:
Constant Field Values

LEX_EXPONENT

public static final String LEX_EXPONENT
See Also:
Constant Field Values

LEX_SIN

public static final String LEX_SIN
See Also:
Constant Field Values

LEX_COS

public static final String LEX_COS
See Also:
Constant Field Values

LEX_TAN

public static final String LEX_TAN
See Also:
Constant Field Values

LEX_ASIN

public static final String LEX_ASIN
See Also:
Constant Field Values

LEX_ACOS

public static final String LEX_ACOS
See Also:
Constant Field Values

LEX_ATAN

public static final String LEX_ATAN
See Also:
Constant Field Values

LEX_SQRT

public static final String LEX_SQRT
See Also:
Constant Field Values

LEX_LN

public static final String LEX_LN
See Also:
Constant Field Values

LEX_Z1

public static final String LEX_Z1
See Also:
Constant Field Values

LEX_Z2

public static final String LEX_Z2
See Also:
Constant Field Values

LEX_X

public static final String LEX_X
See Also:
Constant Field Values

LEX_Y

public static final String LEX_Y
See Also:
Constant Field Values

LEX_PI

public static final String LEX_PI
See Also:
Constant Field Values

LEX_E

public static final String LEX_E
See Also:
Constant Field Values

LEX_RAND

public static final String LEX_RAND
See Also:
Constant Field Values

LEX_GAUSS

public static final String LEX_GAUSS
See Also:
Constant Field Values

LEX_OPEN_PAREN

public static final String LEX_OPEN_PAREN
See Also:
Constant Field Values

LEX_CLOSE_PAREN

public static final String LEX_CLOSE_PAREN
See Also:
Constant Field Values

TOK_OPEN_PAREN

public static final MathToken TOK_OPEN_PAREN

TOK_CLOSE_PAREN

public static final MathToken TOK_CLOSE_PAREN

TOK_ADDITIVE

public static final MathToken TOK_ADDITIVE

TOK_MULTIPLICATIVE

public static final MathToken TOK_MULTIPLICATIVE

TOK_EXPONENT

public static final MathToken TOK_EXPONENT

TOK_NUMBER

public static final MathToken TOK_NUMBER

TOK_FUNC

public static final MathToken TOK_FUNC

TOK_VARIABLE

public static final MathToken TOK_VARIABLE

TOKENS

public static final Object[][] TOKENS
Constructor Detail

MathToken

public MathToken()


Copyright Jo Wood, 1996-2005, last modified, 11th March, 2005