jwo.utils.expression
Class MathOperator
java.lang.Object
|
+--jwo.utils.expression.MathOperator
- public final class MathOperator
- extends Object
Stores an enumerated list of operators that may be parsed by
the MathParser.
Modified from original code described at
www.devx.com/premier/mgznarch/javapro/2001/05may01/ps0105/ps0105.asp.
- Version:
- 1.1, 14th February, 2001, modified 10th April, 2002.
- Author:
- Daniel Savarese, modified by Jo Wood.
ADD
public static final MathOperator ADD
SUBTRACT
public static final MathOperator SUBTRACT
MULTIPLY
public static final MathOperator MULTIPLY
DIVIDE
public static final MathOperator DIVIDE
EXPONENT
public static final MathOperator EXPONENT
SIN
public static final MathOperator SIN
COS
public static final MathOperator COS
TAN
public static final MathOperator TAN
ASIN
public static final MathOperator ASIN
ACOS
public static final MathOperator ACOS
ATAN
public static final MathOperator ATAN
SQRT
public static final MathOperator SQRT
LN
public static final MathOperator LN
Z0
public static final MathOperator Z0
Z1
public static final MathOperator Z1
X
public static final MathOperator X
Y
public static final MathOperator Y
MathOperator
public MathOperator()
getOperator
public static final MathOperator getOperator(Object token)
- Retrieves the operator matching the given type.
- Returns:
- Matched operator.
toString
public String toString()
- Reports a string representation of this operator.
- Overrides:
toString
in class Object
- Returns:
- String representation of this operator.