public class ControlNode extends StructureNode
break
or continue
.ControlRule
Node.HookKey
Modifier and Type | Field and Description |
---|---|
static int |
CONTROL_ID |
Constructor and Description |
---|
ControlNode(java.lang.Object code)
Create a node which returns a specific value
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
eval(Evaluator ev)
Returns the code value.
|
java.lang.Object |
getCode() |
java.lang.String |
toString() |
getName, getOperator, getPFMC, getValue, getVar, testCondition
childIterator, children, childrenAccept, dump, getHook, getId, hookKeys, jjtAccept, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, removeHook, setHook, toString
public static final int CONTROL_ID
public ControlNode(java.lang.Object code)
code
- the value to returnpublic java.lang.Object getCode()
public java.lang.Object eval(Evaluator ev)
eval
in class StructureNode
ev
- The evaluator the Evaluator.eval(com.singularsys.jep.parser.Node)
can be used to evaluate children.public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2018 Singular Systems http://www.singularsys.com/jep