com.akiban.sql.parser
Class NodeFactoryImpl
java.lang.Object
com.akiban.sql.parser.NodeFactory
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.
| 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 |
NodeFactoryImpl
public NodeFactoryImpl()
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.