Package ptolemy.data.expr
Class ASTPtPowerNode
- java.lang.Object
-
- ptolemy.data.expr.ASTPtRootNode
-
- ptolemy.data.expr.ASTPtPowerNode
-
- All Implemented Interfaces:
java.lang.Cloneable
,Node
public class ASTPtPowerNode extends ASTPtRootNode
The parse tree created from the expression string consists of a hierarchy of node objects. This class represents exponentiation nodes in the parse tree. (the operator "^")- Since:
- Ptolemy II 2.1
- Version:
- $Id$
- Author:
- Neil Smyth, Bart Kienhuis, Steve Neuendorffer
- See Also:
ASTPtRootNode
,PtParser
,Token
- Pt.AcceptedRating:
- Red (cxh)
- Pt.ProposedRating:
- Yellow (nsmyth)
-
-
Field Summary
-
Fields inherited from class ptolemy.data.expr.ASTPtRootNode
_children, _id, _isConstant, _parent, _ptToken, _ptType
-
-
Constructor Summary
Constructors Constructor Description ASTPtPowerNode(int id)
ASTPtPowerNode(PtParser p, int id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, setConstant, setToken, setType, toString, toString
-
-
-
-
Constructor Detail
-
ASTPtPowerNode
public ASTPtPowerNode(int id)
-
ASTPtPowerNode
public ASTPtPowerNode(PtParser p, int id)
-
-
Method Detail
-
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.
-
-