public class HiveParserASTNode extends org.antlr.runtime.tree.CommonTree implements org.apache.hadoop.hive.ql.lib.Node, Serializable
Constructor and Description |
---|
HiveParserASTNode() |
HiveParserASTNode(HiveParserASTNode node) |
HiveParserASTNode(org.antlr.runtime.Token t)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addChild(org.antlr.runtime.tree.Tree t) |
void |
addChildren(List kids) |
Object |
deleteChild(int i) |
String |
dump() |
org.antlr.runtime.tree.Tree |
dupNode() |
ArrayList<org.apache.hadoop.hive.ql.lib.Node> |
getChildren() |
String |
getName() |
HiveParserASTNodeOrigin |
getOrigin() |
void |
insertChild(int i,
Object t) |
void |
replaceChildren(int startChildIndex,
int stopChildIndex,
Object t) |
void |
setChild(int i,
org.antlr.runtime.tree.Tree t) |
void |
setOrigin(HiveParserASTNodeOrigin origin)
Tag this HiveParserASTNode with information about the object from which this node originated.
|
void |
setParent(org.antlr.runtime.tree.Tree t) |
void |
setUnknownTokenBoundaries()
For every node in this subtree, make sure it's start/stop token's are set.
|
String |
toStringTree() |
getCharPositionInLine, getChildIndex, getLine, getParent, getText, getToken, getTokenStartIndex, getTokenStopIndex, getType, isNil, setChildIndex, setTokenStartIndex, setTokenStopIndex, toString
createChildrenList, freshenParentAndChildIndexes, freshenParentAndChildIndexes, freshenParentAndChildIndexesDeeply, freshenParentAndChildIndexesDeeply, getAncestor, getAncestors, getChild, getChildCount, getFirstChildWithType, hasAncestor, sanityCheckParentAndChildIndexes, sanityCheckParentAndChildIndexes
public HiveParserASTNode()
public HiveParserASTNode(org.antlr.runtime.Token t)
t
- Token for the CommonTree Nodepublic HiveParserASTNode(HiveParserASTNode 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<org.apache.hadoop.hive.ql.lib.Node> getChildren()
getChildren
in interface org.apache.hadoop.hive.ql.lib.Node
getChildren
in class org.antlr.runtime.tree.BaseTree
public String getName()
getName
in interface org.apache.hadoop.hive.ql.lib.Node
public void setUnknownTokenBoundaries()
In contrast to the method in the parent class, this method is iterative.
setUnknownTokenBoundaries
in class org.antlr.runtime.tree.CommonTree
public HiveParserASTNodeOrigin getOrigin()
public void setOrigin(HiveParserASTNodeOrigin origin)
public String dump()
public void setParent(org.antlr.runtime.tree.Tree t)
setParent
in interface org.antlr.runtime.tree.Tree
setParent
in class org.antlr.runtime.tree.CommonTree
public void addChild(org.antlr.runtime.tree.Tree t)
addChild
in interface org.antlr.runtime.tree.Tree
addChild
in class org.antlr.runtime.tree.BaseTree
public void addChildren(List kids)
addChildren
in class org.antlr.runtime.tree.BaseTree
public void setChild(int i, org.antlr.runtime.tree.Tree t)
setChild
in interface org.antlr.runtime.tree.Tree
setChild
in class org.antlr.runtime.tree.BaseTree
public void insertChild(int i, Object t)
insertChild
in class org.antlr.runtime.tree.BaseTree
public Object deleteChild(int i)
deleteChild
in interface org.antlr.runtime.tree.Tree
deleteChild
in class org.antlr.runtime.tree.BaseTree
public void replaceChildren(int startChildIndex, int stopChildIndex, Object t)
replaceChildren
in interface org.antlr.runtime.tree.Tree
replaceChildren
in class org.antlr.runtime.tree.BaseTree
public String toStringTree()
toStringTree
in interface org.antlr.runtime.tree.Tree
toStringTree
in class org.antlr.runtime.tree.BaseTree
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.