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:
org.antlr.runtime.tree.Tree, Node

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

Author:
athusoo

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(org.antlr.runtime.Token t)
          Constructor
 
Method Summary
 Vector<Node> getChildren()
          Gets the vector of children nodes.
 String getName()
          Gets the name of the node.
 
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(org.antlr.runtime.Token t)
Constructor

Parameters:
t - Token for the CommonTree Node
Method Detail

getChildren

public Vector<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:
Vector

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


Copyright © 2009 The Apache Software Foundation