public class OperatorSet extends Object implements Serializable
This creates instances of the PostfixMathCommands for each operator, saving the need for multiple objects to be created. To get a reference to a particular operator use
OperatorSet opSet = jep.getOperatorSet(); Operator myOp = opSet.getAdd();
If a new operator ABC is added to the parser the this class should be extended to include a method Operator getABC().
Sub classes can change which Operator is returned by each method.
Constructor and Description |
---|
OperatorSet() |
Modifier and Type | Method and Description |
---|---|
Operator |
getAdd() |
Operator |
getAnd() |
Operator |
getAssign() |
Operator |
getCross() |
Operator |
getDivide() |
Operator |
getDot() |
Operator |
getElement() |
Operator |
getEQ() |
Operator |
getGE() |
Operator |
getGT() |
Operator |
getLE() |
Operator |
getList() |
Operator |
getLT() |
Operator |
getMod() |
Operator |
getMultiply() |
Operator |
getNE() |
Operator |
getNot() |
Operator[] |
getOperators()
Gets the list of operators.
|
Operator |
getOr() |
Operator |
getPower() |
Operator |
getSubtract() |
Operator |
getUMinus() |
void |
printOperators() |
public Operator[] getOperators()
public void printOperators()
public Operator getAdd()
public Operator getSubtract()
public Operator getUMinus()
public Operator getMultiply()
public Operator getDivide()
public Operator getMod()
public Operator getPower()
public Operator getEQ()
public Operator getNE()
public Operator getGE()
public Operator getGT()
public Operator getLE()
public Operator getLT()
public Operator getAnd()
public Operator getOr()
public Operator getNot()
public Operator getAssign()
public Operator getDot()
public Operator getCross()
public Operator getList()
public Operator getElement()
Jas4pp 1.5 © Java Analysis Studio for Particle Physics