public class ASTPtProductNode extends ASTPtRootNode
ASTPtRootNode,
PtParser,
Token| Modifier and Type | Field and Description |
|---|---|
protected java.util.ArrayList<Token> |
_lexicalTokens |
_children, _id, _isConstant, _parent, _ptToken, _ptType| Constructor and Description |
|---|
ASTPtProductNode(int id) |
ASTPtProductNode(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, toStringprotected java.util.ArrayList<Token> _lexicalTokens
public ASTPtProductNode(int id)
public ASTPtProductNode(PtParser p, int id)
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone in class ASTPtRootNodejava.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 ASTPtRootNodenode - 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 NodejjtClose in class ASTPtRootNodepublic void visit(ParseTreeVisitor visitor) throws IllegalActionException
visit in class ASTPtRootNodevisitor - The visitor.IllegalActionException - Always thrown in this base
class the visit() method is not implemented here.