|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.japisoft.formula.operator.OperatorFactoryImpl
This factory provides operators for the simple precison mode. This is called for building the syntax tree. User can override any operators or add its own operators here.
| Constructor Summary | |
OperatorFactoryImpl()
|
|
| Method Summary | |
BinaryOperator |
getBinaryOperator(java.lang.String name)
|
TernaryOperator |
getTernaryOperator(java.lang.String name)
|
UnaryOperator |
getUnaryOperator(java.lang.String name)
|
void |
setBinaryOperator(java.lang.String name,
BinaryOperator operator)
Replace an operator by this one, if the operator is null
the operator will be removed |
void |
setTernaryOperator(java.lang.String name,
TernaryOperator operator)
Replace an operator by this one, if the operator is null
the operator will be removed |
void |
setUnaryOperator(java.lang.String name,
UnaryOperator operator)
Replace an operator by this one, if the operator is null
the operator will be removed |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public OperatorFactoryImpl()
| Method Detail |
public UnaryOperator getUnaryOperator(java.lang.String name)
getUnaryOperator in interface OperatorFactorypublic BinaryOperator getBinaryOperator(java.lang.String name)
getBinaryOperator in interface OperatorFactorypublic TernaryOperator getTernaryOperator(java.lang.String name)
getTernaryOperator in interface OperatorFactory
public void setUnaryOperator(java.lang.String name,
UnaryOperator operator)
null
the operator will be removed
setUnaryOperator in interface OperatorFactory
public void setBinaryOperator(java.lang.String name,
BinaryOperator operator)
null
the operator will be removed
setBinaryOperator in interface OperatorFactory
public void setTernaryOperator(java.lang.String name,
TernaryOperator operator)
null
the operator will be removed
setTernaryOperator in interface OperatorFactory
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||