Package 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 toParseTreeEvaluator.visitFunctionApplicationNode(ptolemy.data.expr.ASTPtFunctionApplicationNode).- Version:
- $Id$
- Author:
- Neil Smyth, Edward A. Lee, Steve Neuendorffer, Zoltan Kemenczy, Research in Motion Limited
- See Also:
ASTPtRootNode,PtParser,Token,UtilityFunctions,Math
-
-
Field Summary
-
Fields inherited from class ptolemy.data.expr.ASTPtRootNode
_children, _id, _isConstant, _parent, _ptToken, _ptType
-
-
Constructor Summary
Constructors Constructor Description ASTPtFunctionApplicationNode(int id)ASTPtFunctionApplicationNode(PtParser p, int id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetFunctionName()voidjjtClose()This method is called after all the child nodes have been added.voidvisit(ParseTreeVisitor visitor)Traverse this node with the given visitor.-
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
-
-
-
-
Constructor Detail
-
ASTPtFunctionApplicationNode
public ASTPtFunctionApplicationNode(int id)
-
ASTPtFunctionApplicationNode
public ASTPtFunctionApplicationNode(PtParser p, int id)
-
-
Method Detail
-
getFunctionName
public java.lang.String getFunctionName()
-
jjtClose
public void jjtClose()
Description copied from interface:NodeThis method is called after all the child nodes have been added.- Specified by:
jjtClosein interfaceNode- Overrides:
jjtClosein classASTPtRootNode
-
visit
public void visit(ParseTreeVisitor visitor) throws IllegalActionException
Traverse this node with the given visitor.- Overrides:
visitin classASTPtRootNode- Parameters:
visitor- The visitor.- Throws:
IllegalActionException- Always thrown in this base class the visit() method is not implemented here.
-
-