public class XOperatorSet extends OperatorSet
XOperator
OP_ADD, OP_AND, OP_ASSIGN, OP_CROSS, OP_DIVIDE, OP_DOT, OP_ELEMENT, OP_EQ, OP_GE, OP_GT, OP_LE, OP_LIST, OP_LT, OP_MOD, OP_MULTIPLY, OP_NE, OP_NOT, OP_OR, OP_POWER, OP_SUBTRACT, OP_UDIVIDE, OP_UMINUS
Constructor and Description |
---|
XOperatorSet()
Create the standard set of operators.
|
XOperatorSet(OperatorSet opSet)
Creates the operator set from a given set.
|
Modifier and Type | Method and Description |
---|---|
void |
printOperators()
Prints all the operators, with verbose representations of each operators properties.
|
static void |
setPrecedenceTable(Operator[][] precArray)
Sets the precedences of the operators according to order in the supplied array.
|
getAdd, getAnd, getAssign, getCross, getDivide, getDot, getElement, getEQ, getGE, getGT, getLE, getList, getLT, getMod, getMultiply, getNE, getNot, getOperators, getOr, getPower, getSubtract, getUMinus
public XOperatorSet(OperatorSet opSet)
public XOperatorSet()
public static final void setPrecedenceTable(Operator[][] precArray)
setPrecedenceTable(new Operator[][] { {OP_UMINUS}, {OP_NOT}, {OP_MUL,OP_DIV,OP_MOD}, {OP_PLUS,OP_MINUS}, {OP_LT,OP_LE}, {OP_GT,OP_GE}, {OP_EQ}, {OP_NE}, {OP_AND}, {OP_OR}, });
public void printOperators()
printOperators
in class OperatorSet
http://www.singularsys.com/jep Copyright © 2007 Singular Systems