org.apache.hadoop.hive.ql.parse
Class ASTNode

java.lang.Object
  extended by org.antlr.runtime.tree.BaseTree
      extended by org.antlr.runtime.tree.CommonTree
          extended by org.apache.hadoop.hive.ql.parse.ASTNode
All Implemented Interfaces:
Serializable, org.antlr.runtime.tree.Tree, Node
Direct Known Subclasses:
ASTErrorNode

public class ASTNode
extends org.antlr.runtime.tree.CommonTree
implements Node, Serializable

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.antlr.runtime.tree.CommonTree
childIndex, parent, token
 
Fields inherited from interface org.antlr.runtime.tree.Tree
INVALID_NODE
 
Constructor Summary
ASTNode()
           
ASTNode(ASTNode node)
           
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, deleteChild, freshenParentAndChildIndexes, freshenParentAndChildIndexes, freshenParentAndChildIndexesDeeply, freshenParentAndChildIndexesDeeply, getAncestor, getAncestors, getChild, getChildCount, getFirstChildWithType, hasAncestor, insertChild, replaceChildren, sanityCheckParentAndChildIndexes, sanityCheckParentAndChildIndexes, setChild, toStringTree
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ASTNode

public ASTNode()

ASTNode

public ASTNode(org.antlr.runtime.Token t)
Constructor.

Parameters:
t - Token for the CommonTree Node

ASTNode

public ASTNode(ASTNode node)
Method Detail

dupNode

public org.antlr.runtime.tree.Tree dupNode()
Specified by:
dupNode in interface org.antlr.runtime.tree.Tree
Overrides:
dupNode in class org.antlr.runtime.tree.CommonTree

getChildren

public ArrayList<Node> getChildren()
Description copied from interface: Node
Gets the vector of children nodes. This is used in the graph walker algorithms.

Specified by:
getChildren in interface Node
Overrides:
getChildren in class org.antlr.runtime.tree.BaseTree
Returns:
List

getName

public String getName()
Description copied from interface: Node
Gets the name of the node. This is used in the rule dispatchers.

Specified by:
getName in interface Node
Returns:
String

getOrigin

public ASTNodeOrigin getOrigin()
Returns:
information about the object from which this ASTNode originated, or null if this ASTNode was not expanded from an object reference

setOrigin

public void setOrigin(ASTNodeOrigin origin)
Tag this ASTNode with information about the object from which this node originated.


dump

public String dump()


Copyright © 2014 The Apache Software Foundation. All rights reserved.