Class StreamSendTo
java.lang.Object
com.singularsys.jep.functions.PostfixMathCommand
com.singularsys.extensions.stream.StreamSendTo
- All Implemented Interfaces:
CallbackEvaluationI,JepComponent,PostfixMathCommandI,Serializable
An assignment operator so we can do
3+4 -> x
This function implements the CallbackEvaluationI interface
so that it handles setting the value of a variable.
Stream arguments on the lhs are converted to lists using the StreamListProcessor.
Almost identical to Assign except the argument order is reversed.
Any Variable or functions which implements LValueI can appear on the right hand side of the equation.
- See Also:
-
Field Summary
Fields inherited from class com.singularsys.jep.functions.PostfixMathCommand
curNumberOfParameters, description, name, NaN, numberOfParameters -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionFor assignment set the value of the variable on the RHS to value returned by evaluating the LHS side.Gets a light-weight instance suitable for using in multiple threads.voidInitialize the component.Methods inherited from class com.singularsys.jep.functions.PostfixMathCommand
asArray, asBool, asDouble, asInt, asLong, asStrictInt, asString, asType, checkNumberOfParameters, getDescription, getDescription, getDescriptionWithType, getName, getNumberOfParameters, run, setCurNumberOfParameters, setDescription, setName, toString, toString
-
Constructor Details
-
StreamSendTo
public StreamSendTo()
-
-
Method Details
-
evaluate
For assignment set the value of the variable on the RHS to value returned by evaluating the LHS side.- Specified by:
evaluatein 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:
-
init
Description copied from interface:JepComponentInitialize the component. This method is called whenever a component is added to Jep. Hence, it allows components to keep track of the other components they may rely on.- Specified by:
initin interfaceJepComponent- Parameters:
jep- the current Jep instance
-
getLightWeightInstance
Description copied from interface:JepComponentGets a light-weight instance suitable for using in multiple threads.- Specified by:
getLightWeightInstancein interfaceJepComponent- Returns:
- either a new instance, null or 'this'.
-