Class ControlNode
- java.lang.Object
-
- com.singularsys.jep.parser.SimpleNode
-
- com.singularsys.extensions.structure.StructureNode
-
- com.singularsys.extensions.structure.ControlNode
-
- All Implemented Interfaces:
Node
public class ControlNode extends StructureNode
A node representing a control statement such asbreak
orcontinue
.- Author:
- rich
- See Also:
ControlRule
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.singularsys.jep.parser.Node
Node.HookKey
-
-
Field Summary
Fields Modifier and Type Field Description static int
CONTROL_ID
-
Constructor Summary
Constructors Constructor Description ControlNode(java.lang.Object code)
Create a node which returns a specific value
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
eval(Evaluator ev)
Returns the code value.java.lang.Object
getCode()
java.lang.String
toString()
-
Methods inherited from class com.singularsys.extensions.structure.StructureNode
getName, getOperator, getPFMC, getValue, getVar, testCondition
-
Methods inherited from class com.singularsys.jep.parser.SimpleNode
childIterator, children, childrenAccept, dump, getHook, getId, hookKeys, jjtAccept, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, removeHook, setHook, toString
-
-
-
-
Field Detail
-
CONTROL_ID
public static final int CONTROL_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
getCode
public java.lang.Object getCode()
-
eval
public java.lang.Object eval(Evaluator ev)
Returns the code value.- Specified by:
eval
in classStructureNode
- Parameters:
ev
- The evaluator theEvaluator.eval(com.singularsys.jep.parser.Node)
can be used to evaluate children.- Returns:
- result of evaluation
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-