ptolemy.data.expr
Class ASTPtFunctionApplicationNode
java.lang.Object
ptolemy.data.expr.ASTPtRootNode
ptolemy.data.expr.ASTPtFunctionApplicationNode
- All Implemented Interfaces:
- java.lang.Cloneable, Node
public class ASTPtFunctionApplicationNode
- extends ASTPtRootNode
This class represents an expression that is the application of a
function in the parse tree. The first child of this node is the child
node that represents the function. The function specification may any
node that evaluates to a FunctionToken, or a leaf node that refers to
the name of a function registered with the parser. The remaining
children are node representing the arguments of the function. For
information on the evaluation of functions, refer to ParseTreeEvaluator.visitFunctionApplicationNode(ptolemy.data.expr.ASTPtFunctionApplicationNode)
.
- Version:
- $Id: ASTPtFunctionApplicationNode.java 57040 2010-01-27 20:52:32Z cxh $
- Author:
- Neil Smyth, Edward A. Lee, Steve Neuendorffer, Zoltan Kemenczy, Research in Motion Limited
- See Also:
ASTPtRootNode
,
PtParser
,
Token
,
UtilityFunctions
,
Math
Methods inherited from class ptolemy.data.expr.ASTPtRootNode |
clone, displayParseTree, evaluateParseTree, getToken, getType, isCongruent, isConstant, isEvaluated, jjtAddChild, 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 |
ASTPtFunctionApplicationNode
public ASTPtFunctionApplicationNode(int id)
ASTPtFunctionApplicationNode
public ASTPtFunctionApplicationNode(PtParser p,
int id)
getFunctionName
public java.lang.String getFunctionName()
jjtClose
public void jjtClose()
- Description copied from interface:
Node
- This method is called after all the child nodes have been
added.
- Specified by:
jjtClose
in interface Node
- Overrides:
jjtClose
in class ASTPtRootNode
visit
public void visit(ParseTreeVisitor visitor)
throws IllegalActionException
- Traverse this node with the given visitor.
- Overrides:
visit
in class ASTPtRootNode
- Throws:
IllegalActionException