ptolemy.data.expr
Class ASTPtFunctionalIfNode
java.lang.Object
ptolemy.data.expr.ASTPtRootNode
ptolemy.data.expr.ASTPtFunctionalIfNode
- All Implemented Interfaces:
- java.lang.Cloneable, Node
public class ASTPtFunctionalIfNode
- extends ASTPtRootNode
The parse tree created from the expression string consists of a
hierarchy of node objects. This class represents functional if-then-else
nodes.
A functional if-then-else if of the form booleanToken ? token : token
The token returned depends on the value of the boolean.
- Since:
- Ptolemy II 0.2
- Version:
- $Id: ASTPtFunctionalIfNode.java 38798 2005-07-08 20:00:01Z cxh $
- Author:
- Neil Smyth
- See Also:
ASTPtRootNode
,
PtParser
,
Token
- Accepted Rating:
- Proposed Rating:
Methods inherited from class ptolemy.data.expr.ASTPtRootNode |
clone, displayParseTree, evaluateParseTree, getToken, getType, isCongruent, isConstant, isEvaluated, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, setConstant, setToken, setType, toString, toString |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ASTPtFunctionalIfNode
public ASTPtFunctionalIfNode(int id)
ASTPtFunctionalIfNode
public ASTPtFunctionalIfNode(PtParser p,
int id)
visit
public void visit(ParseTreeVisitor visitor)
throws IllegalActionException
- Traverse this node with the given visitor.
- Overrides:
visit
in class ASTPtRootNode
- Throws:
IllegalActionException