public class IfNode extends StructureNode
Node.HookKey
Constructor and Description |
---|
IfNode(Node condition,
Node trueNode,
Node falseNode)
Constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
eval(Evaluator ev)
Evaluate the statement
|
Node |
getCondition() |
Node |
getFalseNode() |
Node |
getTrueNode() |
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 Node getCondition()
public Node getFalseNode()
public Node getTrueNode()
public java.lang.Object eval(Evaluator ev) throws EvaluationException
eval
in class StructureNode
ev
- The evaluator the Evaluator.eval(com.singularsys.jep.parser.Node)
can be used to evaluate children.EvaluationException
- if evaluation cannot be performedpublic java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2018 Singular Systems http://www.singularsys.com/jep