Class ControlNode
java.lang.Object
com.singularsys.jep.parser.SimpleNode
com.singularsys.extensions.structure.StructureNode
com.singularsys.extensions.structure.ControlNode
- All Implemented Interfaces:
Node
A node representing a control statement such as
break or continue.- Author:
- rich
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.singularsys.jep.parser.Node
Node.HookKey -
Field Summary
Fields -
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
-
Field Details
-
CONTROL_ID
public static final int CONTROL_ID- See Also:
-
-
Constructor Details
-
ControlNode
Create a node which returns a specific value- Parameters:
code- the value to return
-
-
Method Details
-
getCode
-
eval
Returns the code value.- 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
-
toString
-