Class SequenceNode
java.lang.Object
com.singularsys.jep.parser.SimpleNode
com.singularsys.extensions.structure.StructureNode
com.singularsys.extensions.structure.SequenceNode
- All Implemented Interfaces:
Node
A node representing a sequence of expressions.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.singularsys.jep.parser.Node
Node.HookKey -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.singularsys.extensions.structure.StructureNode
getName, getOperator, getPFMC, getValue, getVar, testConditionMethods inherited from class com.singularsys.jep.parser.SimpleNode
childIterator, children, childrenAccept, dump, getChildren, getHook, getId, hookKeys, jjtAccept, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, removeHook, setHook, toString
-
Constructor Details
-
SequenceNode
public SequenceNode()
-
-
Method Details
-
add
Add the next node in the sequence.- Parameters:
n- node to add
-
eval
Will evaluate each of its children in turn. If Break or Continue is encounter the subsequent children are not evaluated.- Specified by:
evalin classStructureNode- Parameters:
ev- The evaluator theEvaluator.eval(com.singularsys.jep.parser.Node)can be used to evaluate children.- Returns:
- result of evaluation
- Throws:
EvaluationException- if evaluation cannot be performed
-
toString
-