Package com.singularsys.jep.misc.javaops
Class OpEquals
- java.lang.Object
-
- com.singularsys.jep.functions.PostfixMathCommand
-
- com.singularsys.jep.misc.javaops.OpEquals
-
- All Implemented Interfaces:
CallbackEvaluationI
,PostfixMathCommandI
,java.io.Serializable
public class OpEquals extends PostfixMathCommand implements CallbackEvaluationI
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.singularsys.jep.functions.PostfixMathCommand
curNumberOfParameters, name, NaN, numberOfParameters
-
-
Constructor Summary
Constructors Constructor Description OpEquals(PostfixMathCommandI fun)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
evaluate(Node node, Evaluator pv)
For assignment set the value of the variable on the lhs to value returned by evaluating the right-hand side.PostfixMathCommandI
getRoot()
-
Methods inherited from class com.singularsys.jep.functions.PostfixMathCommand
asArray, asBool, asDouble, asInt, asLong, asStrictInt, asString, checkNumberOfParameters, getName, getNumberOfParameters, run, setCurNumberOfParameters, setName, toString, toString
-
-
-
-
Constructor Detail
-
OpEquals
public OpEquals(PostfixMathCommandI fun)
-
-
Method Detail
-
getRoot
public PostfixMathCommandI getRoot()
-
evaluate
public java.lang.Object evaluate(Node node, Evaluator pv) throws EvaluationException
For assignment set the value of the variable on the lhs to value returned by evaluating the right-hand side.- Specified by:
evaluate
in interfaceCallbackEvaluationI
- Parameters:
node
- The current nodepv
- The visitor, can be used evaluate the children- Returns:
- the value after evaluation. This value will be passed to other functions higher up the node tree. The value can be any type including Double or Vector<Object>
- Throws:
EvaluationException
- if the calculation cannot be performed- See Also:
Evaluator
-
-