public class Parse
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) static int |
And |
(package private) static java.lang.Integer |
AND |
(package private) static int |
Assignment |
(package private) static java.lang.Integer |
ASSIGNMENT |
(package private) static symbmath |
caller |
(package private) static int |
Comma |
(package private) static java.lang.Integer |
COMMA |
(package private) static int |
Divide |
(package private) static java.lang.Integer |
DIVIDE |
(package private) static int |
Equal |
(package private) static java.lang.Integer |
EQUAL |
(package private) static int |
Equals |
(package private) static java.lang.Integer |
EQUALS |
(package private) static int |
Factorial |
(package private) static java.lang.Integer |
FACTORIAL |
(package private) static int |
Greater |
(package private) static java.lang.Integer |
GREATER |
(package private) static int |
GreaterEqual |
(package private) static java.lang.Integer |
GREATEREQUAL |
(package private) static int |
Less |
(package private) static java.lang.Integer |
LESS |
(package private) static int |
LessEqual |
(package private) static java.lang.Integer |
LESSEQUAL |
(package private) static int |
Minus |
(package private) static java.lang.Integer |
MINUS |
(package private) static int |
Mult |
(package private) static java.lang.Integer |
MULT |
(package private) static int |
Or |
(package private) static java.lang.Integer |
OR |
(package private) static int |
Plus |
(package private) static java.lang.Integer |
PLUS |
(package private) static int |
Power |
(package private) static java.lang.Integer |
POWER |
(package private) static int[] |
type |
(package private) static int |
Unequal |
(package private) static java.lang.Integer |
UNEQUAL |
Modifier and Type | Method and Description |
---|---|
(package private) static java.util.Vector |
binary(int i,
int j,
java.util.Vector vector) |
(package private) static java.util.Vector |
cleanup(int i,
java.util.Vector vector) |
(package private) void |
clear() |
(package private) java.util.Vector |
commaToVector(Expression expression,
java.util.Vector vector) |
(package private) Pattern |
getPattern(java.lang.String s) |
(package private) static Expression |
makeDivide(Expression expression,
Expression expression2) |
(package private) static Expression |
makeMinus(Expression expression,
Expression expression2) |
(package private) static Expression |
makeMult(Expression expression,
Expression expression2) |
(package private) static Expression |
makePlus(Expression expression,
Expression expression2) |
(package private) static Expression |
makePower(Expression expression,
Expression expression2) |
java.lang.String[] |
parse(java.lang.String s) |
(package private) static java.lang.String |
removeBlanks(java.lang.String s) |
(package private) java.lang.String |
replace(java.lang.String s,
java.lang.String s1,
java.lang.String s2) |
(package private) java.lang.String |
replaceAll(java.lang.String s,
java.lang.String s1,
java.lang.String s2) |
Expression |
toExpression(java.lang.String s) |
(package private) static java.lang.String |
validate(java.lang.String s) |
(package private) Expression[] |
vectorToArray(java.util.Vector vector) |
static final int Comma
static final int Assignment
static final int And
static final int Or
static final int Equal
static final int Equals
static final int Unequal
static final int GreaterEqual
static final int LessEqual
static final int Greater
static final int Less
static final int Plus
static final int Minus
static final int Mult
static final int Divide
static final int Power
static final int Factorial
static final int[] type
static final java.lang.Integer COMMA
static final java.lang.Integer ASSIGNMENT
static final java.lang.Integer AND
static final java.lang.Integer OR
static final java.lang.Integer EQUAL
static final java.lang.Integer EQUALS
static final java.lang.Integer UNEQUAL
static final java.lang.Integer GREATEREQUAL
static final java.lang.Integer LESSEQUAL
static final java.lang.Integer GREATER
static final java.lang.Integer LESS
static final java.lang.Integer PLUS
static final java.lang.Integer MINUS
static final java.lang.Integer MULT
static final java.lang.Integer DIVIDE
static final java.lang.Integer POWER
static final java.lang.Integer FACTORIAL
static symbmath caller
public Parse()
public Parse(symbmath s)
static java.util.Vector binary(int i, int j, java.util.Vector vector) throws SyntaxException
SyntaxException
static java.util.Vector cleanup(int i, java.util.Vector vector)
void clear()
java.util.Vector commaToVector(Expression expression, java.util.Vector vector)
Pattern getPattern(java.lang.String s)
static Expression makeDivide(Expression expression, Expression expression2)
static Expression makeMinus(Expression expression, Expression expression2)
static Expression makeMult(Expression expression, Expression expression2)
static Expression makePlus(Expression expression, Expression expression2)
static Expression makePower(Expression expression, Expression expression2)
public java.lang.String[] parse(java.lang.String s)
static java.lang.String removeBlanks(java.lang.String s)
java.lang.String replace(java.lang.String s, java.lang.String s1, java.lang.String s2)
java.lang.String replaceAll(java.lang.String s, java.lang.String s1, java.lang.String s2)
public Expression toExpression(java.lang.String s) throws SyntaxException
SyntaxException
static java.lang.String validate(java.lang.String s) throws SyntaxException
SyntaxException
Expression[] vectorToArray(java.util.Vector vector)