public class ASTPtSumNode extends ASTPtRootNode
ASTPtRootNode
,
PtParser
,
Token
Red (cxh) |
Yellow (nsmyth) |
Modifier and Type | Field and Description |
---|---|
protected java.util.ArrayList<Token> |
_lexicalTokens |
_children, _id, _isConstant, _parent, _ptToken, _ptType
Constructor and Description |
---|
ASTPtSumNode(int id) |
ASTPtSumNode(PtParser p,
int id) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Clone the parse tree node by invoking the clone() method of
the base class.
|
java.util.List<Token> |
getLexicalTokenList()
Return the list of lexical tokens that were used to make this node.
|
boolean |
isCongruent(ASTPtRootNode node,
java.util.Map renaming)
Return true if this node is (hierarchically) congruent to the
given node, under the given renaming of bound identifiers.
|
void |
jjtClose()
Close this node.
|
void |
visit(ParseTreeVisitor visitor)
Traverse this node with the given visitor.
|
displayParseTree, evaluateParseTree, getToken, getType, isConstant, isEvaluated, jjtAddChild, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, setConstant, setToken, setType, toString, toString
protected java.util.ArrayList<Token> _lexicalTokens
public ASTPtSumNode(int id)
public ASTPtSumNode(PtParser p, int id)
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class ASTPtRootNode
java.lang.CloneNotSupportedException
- If the superclass clone()
method throws it.public java.util.List<Token> getLexicalTokenList()
public boolean isCongruent(ASTPtRootNode node, java.util.Map renaming)
isCongruent
in class ASTPtRootNode
node
- The node to compare to.renaming
- A map from String to String that gives a
renaming from identifiers in this node to identifiers in the
given node.public void jjtClose()
jjtClose
in interface Node
jjtClose
in class ASTPtRootNode
public void visit(ParseTreeVisitor visitor) throws IllegalActionException
visit
in class ASTPtRootNode
IllegalActionException