ptolemy.data.expr
Class ASTPtPowerNode
java.lang.Object
extended byptolemy.data.expr.ASTPtRootNode
extended byptolemy.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: ASTPtPowerNode.java,v 1.14 2005年07月08日 19:57:26 cxh Exp $
- Author:
- Neil Smyth, Bart Kienhuis, Steve Neuendorffer
- See Also:
ASTPtRootNode,
PtParser,
Token
- Accepted Rating:
Red (cxh)
- Proposed Rating:
Yellow (nsmyth)
| 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 |
ASTPtPowerNode
public ASTPtPowerNode(int id)
ASTPtPowerNode
public ASTPtPowerNode(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