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

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
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(org.antlr.runtime.Token t)
          Constructor.
 
Method Summary
 String dump()
           
 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
dupNode, getCharPositionInLine, getLine, getText, getToken, getTokenStartIndex, getTokenStopIndex, getType, isNil, setTokenStartIndex, setTokenStopIndex, toString
 
Methods inherited from class org.antlr.runtime.tree.BaseTree
addChild, addChildren, createChildrenList, deleteChild, dupTree, getChild, getChildCount, getFirstChildWithType, setChild, toStringTree
 
Methods inherited from class java.lang.Object
clone, equals, finalize, 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
Method Detail

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
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 © 2013 The Apache Software Foundation