com.akiban.sql.parser
Interface SQLParserContext

All Known Implementing Classes:
SQLParser

public interface SQLParserContext


Nested Class Summary
static class SQLParserContext.IdentifierCase
           
 
Method Summary
 void checkIdentifierLengthLimit(String identifier)
          Check that identifier is not too long.
 void checkStringLiteralLengthLimit(String image)
          Check that string literal is not too long.
 SQLParserContext.IdentifierCase getIdentifierCase()
          How are unquoted identifiers standardized?
 NodeFactory getNodeFactory()
          Get a node factory.
 Map getPrintedObjectsMap()
          Return a map of AST nodes that have already been printed during a compiler phase, so as to be able to avoid printing a node more than once.
 boolean hasFeature(SQLParserFeature feature)
          Is the given feature enabled for this parser?
 void setMessageLocale(String locale)
          Mark as requesting locale.
 void setReturnParameterFlag()
          Mark as returning a parameter.
 

Method Detail

checkStringLiteralLengthLimit

void checkStringLiteralLengthLimit(String image)
                                   throws StandardException
Check that string literal is not too long.

Throws:
StandardException

checkIdentifierLengthLimit

void checkIdentifierLengthLimit(String identifier)
                                throws StandardException
Check that identifier is not too long.

Throws:
StandardException

setReturnParameterFlag

void setReturnParameterFlag()
Mark as returning a parameter.


setMessageLocale

void setMessageLocale(String locale)
Mark as requesting locale.


getNodeFactory

NodeFactory getNodeFactory()
Get a node factory.


getPrintedObjectsMap

Map getPrintedObjectsMap()
Return a map of AST nodes that have already been printed during a compiler phase, so as to be able to avoid printing a node more than once.

Returns:
the map
See Also:
QueryTreeNode.treePrint(int)

hasFeature

boolean hasFeature(SQLParserFeature feature)
Is the given feature enabled for this parser?


getIdentifierCase

SQLParserContext.IdentifierCase getIdentifierCase()
How are unquoted identifiers standardized?



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