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, toString
addChild, addChildren, createChildrenList, deleteChild, freshenParentAndChildIndexes, freshenParentAndChildIndexes, freshenParentAndChildIndexesDeeply, freshenParentAndChildIndexesDeeply, getAncestor, getAncestors, getChild, getChildCount, getFirstChildWithType, hasAncestor, insertChild, replaceChildren, sanityCheckParentAndChildIndexes, sanityCheckParentAndChildIndexes, setChild, toStringTree
public 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.Tree
dupNode
in class org.antlr.runtime.tree.CommonTree
public ArrayList<Node> getChildren()
Node
getChildren
in interface Node
getChildren
in class org.antlr.runtime.tree.BaseTree
public String getName()
Node
public ASTNodeOrigin getOrigin()
public void setOrigin(ASTNodeOrigin origin)
public String dump()
Copyright © 2017 The Apache Software Foundation. All rights reserved.