Package ptolemy.data.expr
Class ASTPtAssignmentNode
- java.lang.Object
-
- ptolemy.data.expr.ASTPtRootNode
-
- ptolemy.data.expr.ASTPtAssignmentNode
-
- All Implemented Interfaces:
java.lang.Cloneable
,Node
public class ASTPtAssignmentNode extends ASTPtRootNode
- Version:
- $Id$
- Author:
- Steve Neuendorffer
- 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 ASTPtAssignmentNode(int id)
ASTPtAssignmentNode(PtParser p, int id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAssignment()
ASTPtRootNode
getExpressionTree()
java.lang.String
getIdentifier()
void
jjtClose()
This method is called after all the child nodes have been added.void
visit(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
-
ASTPtAssignmentNode
public ASTPtAssignmentNode(int id)
-
ASTPtAssignmentNode
public ASTPtAssignmentNode(PtParser p, int id)
-
-
Method Detail
-
getAssignment
public java.lang.String getAssignment()
-
getExpressionTree
public ASTPtRootNode getExpressionTree()
-
getIdentifier
public java.lang.String getIdentifier()
-
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 interfaceNode
- Overrides:
jjtClose
in classASTPtRootNode
-
visit
public void visit(ParseTreeVisitor visitor) throws IllegalActionException
Traverse this node with the given visitor.- Overrides:
visit
in classASTPtRootNode
- Parameters:
visitor
- The visitor.- Throws:
IllegalActionException
- Always thrown in this base class the visit() method is not implemented here.
-
-