com.akiban.sql.parser
Class NodeFactoryImpl

java.lang.Object
  extended by com.akiban.sql.parser.NodeFactory
      extended by com.akiban.sql.parser.NodeFactoryImpl

public final class NodeFactoryImpl
extends NodeFactory

Create new parser AST nodes.

There is one of these per parser context, possibly wrapped for higher-level uses.


Constructor Summary
NodeFactoryImpl()
           
 
Method Summary
 QueryTreeNode getNode(int nodeType, SQLParserContext pc)
          Get a node that takes no initializer arguments.
protected  String nodeName(int nodeType)
          Translate a node type from NodeTypes to a class name
 
Methods inherited from class com.akiban.sql.parser.NodeFactory
copyNode, copyUserData, getCreateAliasNode, getNode, getNode, getNode, getNode, getNode, getNode, getNode, getNode, getNode, getNode, getNode, getNode, getNode, getNode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeFactoryImpl

public NodeFactoryImpl()
Method Detail

getNode

public QueryTreeNode getNode(int nodeType,
                             SQLParserContext pc)
                      throws StandardException
Get a node that takes no initializer arguments.

Specified by:
getNode in class NodeFactory
Parameters:
nodeType - Identifier for the type of node.
pc - A SQLParserContext
Returns:
A new QueryTree node.
Throws:
StandardException - Thrown on error.

nodeName

protected String nodeName(int nodeType)
                   throws StandardException
Translate a node type from NodeTypes to a class name

Parameters:
nodeType - A node type identifier from NodeTypes
Throws:
StandardException - Thrown on error


Copyright © 2013 Akiban Technologies, Inc. All rights reserved.