|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.antlr.runtime.tree.BaseTree
org.antlr.runtime.tree.CommonTree
org.apache.hadoop.hive.ql.parse.ASTNode
public class ASTNode
Field Summary |
---|
Fields inherited from class org.antlr.runtime.tree.CommonTree |
---|
childIndex, parent, startIndex, stopIndex, token |
Fields inherited from class org.antlr.runtime.tree.BaseTree |
---|
children |
Fields inherited from interface org.antlr.runtime.tree.Tree |
---|
INVALID_NODE |
Constructor Summary | |
---|---|
ASTNode()
|
|
ASTNode(ASTNode copy)
|
|
ASTNode(org.antlr.runtime.Token t)
Constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.antlr.runtime.tree.CommonTree |
---|
getCharPositionInLine, getChildIndex, getLine, getParent, getText, getToken, getTokenStartIndex, getTokenStopIndex, getType, isNil, setChildIndex, setParent, setTokenStartIndex, setTokenStopIndex, setUnknownTokenBoundaries, toString |
Methods inherited from class org.antlr.runtime.tree.BaseTree |
---|
addChild, addChildren, createChildrenList, deleteChild, freshenParentAndChildIndexes, freshenParentAndChildIndexes, freshenParentAndChildIndexesDeeply, freshenParentAndChildIndexesDeeply, getAncestor, getAncestors, getChild, getChildCount, getFirstChildWithType, hasAncestor, insertChild, replaceChildren, sanityCheckParentAndChildIndexes, sanityCheckParentAndChildIndexes, setChild, toStringTree |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ASTNode()
public ASTNode(ASTNode copy)
public ASTNode(org.antlr.runtime.Token t)
t
- Token for the CommonTree NodeMethod Detail |
---|
public ArrayList<Node> getChildren()
Node
getChildren
in interface Node
getChildren
in class org.antlr.runtime.tree.BaseTree
public String getName()
Node
getName
in interface Node
public ASTNodeOrigin getOrigin()
public void setOrigin(ASTNodeOrigin origin)
public org.antlr.runtime.tree.Tree dupNode()
dupNode
in interface org.antlr.runtime.tree.Tree
dupNode
in class org.antlr.runtime.tree.CommonTree
public String dump()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |