public class ASTNode extends org.antlr.runtime.tree.CommonTree implements Node, Serializable
| Constructor and Description |
|---|
ASTNode() |
ASTNode(ASTNode node) |
ASTNode(org.antlr.runtime.Token t)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
dump() |
org.antlr.runtime.tree.Tree |
dupNode() |
ArrayList<Node> |
getChildren()
Gets the vector of children nodes.
|
String |
getName()
Gets the name of the node.
|
ASTNodeOrigin |
getOrigin() |
void |
setOrigin(ASTNodeOrigin origin)
Tag this ASTNode with information about the object from which this node
originated.
|
getCharPositionInLine, getChildIndex, getLine, getParent, getText, getToken, getTokenStartIndex, getTokenStopIndex, getType, isNil, setChildIndex, setParent, setTokenStartIndex, setTokenStopIndex, setUnknownTokenBoundaries, toStringaddChild, addChildren, createChildrenList, deleteChild, freshenParentAndChildIndexes, freshenParentAndChildIndexes, freshenParentAndChildIndexesDeeply, freshenParentAndChildIndexesDeeply, getAncestor, getAncestors, getChild, getChildCount, getFirstChildWithType, hasAncestor, insertChild, replaceChildren, sanityCheckParentAndChildIndexes, sanityCheckParentAndChildIndexes, setChild, toStringTreepublic ASTNode()
public ASTNode(org.antlr.runtime.Token t)
t - Token for the CommonTree Nodepublic ASTNode(ASTNode node)
public org.antlr.runtime.tree.Tree dupNode()
dupNode in interface org.antlr.runtime.tree.TreedupNode in class org.antlr.runtime.tree.CommonTreepublic ArrayList<Node> getChildren()
NodegetChildren in interface NodegetChildren in class org.antlr.runtime.tree.BaseTreepublic String getName()
Nodepublic ASTNodeOrigin getOrigin()
public void setOrigin(ASTNodeOrigin origin)
public String dump()
Copyright © 2017 The Apache Software Foundation. All rights reserved.