|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object fr.expression4j.factory.OperatorFactory
public class OperatorFactory
manage operators define by the framework.
Constructor Summary | |
---|---|
OperatorFactory()
|
Method Summary | |
---|---|
static void |
addOperator(Operator operator)
|
static Operator |
createOperator(java.lang.String name,
java.lang.String symbol,
boolean isUnary)
Create an operator. |
static Operator |
getOperator(java.lang.String name)
get the given operator name |
static java.util.List |
getOperatorList()
return operator list as String |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OperatorFactory()
Method Detail |
---|
public static Operator createOperator(java.lang.String name, java.lang.String symbol, boolean isUnary)
name
- operator namesymbol
- symbol associated to the operatorisUnary
- tel if operator is an unary operator or not.
public static void addOperator(Operator operator)
public static java.util.List getOperatorList()
public static Operator getOperator(java.lang.String name)
name
- name of the operator
null
otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |