public class OrderByFragmentParser extends GeneratedOrderByFragmentParser
Extension of the Antlr-generated parser for the purpose of adding our custom parsing behavior (semantic analysis, etc).
_tokenNames, _tokenSet_0, _tokenSet_1, _tokenSet_2, _tokenSet_3, _tokenSet_4, _tokenSet_5, _tokenSet_6, _tokenSet_7, _tokenSet_8, _tokenSet_9astFactory, inputState, returnAST, tokenNames, tokenTypeToASTClassMapASCENDING, CLOSE_PAREN, COLLATE, COLUMN_REF, COMMA, DESCENDING, DOT, EOF, ESCqs, EXPONENT, EXPR_LIST, FIRST, FLOAT_SUFFIX, HARD_QUOTE, HEX_DIGIT, ID_LETTER, ID_START_LETTER, IDENT, IDENT_LIST, LAST, LITERAL_ascending, LITERAL_descending, NULL_ORDER, NULL_TREE_LOOKAHEAD, NULLS, NUM_DOUBLE, NUM_FLOAT, NUM_INT, NUM_LONG, OPEN_PAREN, ORDER_BY, ORDER_SPEC, QUOTED_STRING, SORT_KEY, SORT_SPEC, WS| Constructor and Description |
|---|
OrderByFragmentParser(antlr.TokenStream lexer,
TranslationContext context) |
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getColumnReferences() |
protected boolean |
isFunctionName(antlr.collections.AST ast)
A check to see if the text of the given node represents a known function name.
|
protected antlr.collections.AST |
postProcessSortSpecification(antlr.collections.AST sortSpec)
Allow post processing of each <tt>sort specification</tt>
|
protected antlr.collections.AST |
quotedIdentifier(antlr.collections.AST ident)
Process the given node as a quote identifier.
|
protected antlr.collections.AST |
quotedString(antlr.collections.AST ident)
Process the given node as a quote string.
|
protected antlr.collections.AST |
resolveFunction(antlr.collections.AST ast)
Process the given node as a function.
|
protected antlr.collections.AST |
resolveIdent(antlr.collections.AST ident)
Process the given node as an IDENT.
|
protected void |
trace(String msg)
Method for logging execution trace information.
|
void |
traceIn(String ruleName) |
void |
traceOut(String ruleName) |
buildTokenTypeASTClassMap, collationName, collationSpecification, expression, extractText, functionCall, functionCallCheck, functionName, functionParameter, functionParameterList, nullOrdering, nullPrecedence, orderByFragment, orderingSpecification, simplePropertyPath, sortKey, sortSpecificationaddMessageListener, addParserListener, addParserMatchListener, addParserTokenListener, addSemanticPredicateListener, addSyntacticPredicateListener, addTraceListener, consumeUntil, consumeUntil, defaultDebuggingSetup, getAST, getASTFactory, getFilename, getInputState, getTokenName, getTokenNames, getTokenTypeToASTClassMap, isDebugMode, mark, match, match, matchNot, panic, recover, removeMessageListener, removeParserListener, removeParserMatchListener, removeParserTokenListener, removeSemanticPredicateListener, removeSyntacticPredicateListener, removeTraceListener, reportError, reportError, reportWarning, rewind, setASTFactory, setASTNodeClass, setASTNodeType, setDebugMode, setFilename, setIgnoreInvalidDebugCalls, setInputState, setTokenBuffer, traceIndentpublic OrderByFragmentParser(antlr.TokenStream lexer,
TranslationContext context)
protected antlr.collections.AST quotedIdentifier(antlr.collections.AST ident)
GeneratedOrderByFragmentParserProcess the given node as a quote identifier. These need to be quoted in the dialect-specific way.
quotedIdentifier in class GeneratedOrderByFragmentParserident - The quoted-identifier node.Dialect.quote(java.lang.String)protected antlr.collections.AST quotedString(antlr.collections.AST ident)
GeneratedOrderByFragmentParserProcess the given node as a quote string.
quotedString in class GeneratedOrderByFragmentParserident - The quoted string. This is used from within function param recognition, and represents a
SQL-quoted string.protected boolean isFunctionName(antlr.collections.AST ast)
GeneratedOrderByFragmentParserA check to see if the text of the given node represents a known function name.
isFunctionName in class GeneratedOrderByFragmentParserast - The node whose text we want to check.SQLFunctionRegistryprotected antlr.collections.AST resolveFunction(antlr.collections.AST ast)
GeneratedOrderByFragmentParserProcess the given node as a function.
resolveFunction in class GeneratedOrderByFragmentParserprotected antlr.collections.AST resolveIdent(antlr.collections.AST ident)
GeneratedOrderByFragmentParserProcess the given node as an IDENT. May represent either a column reference or a property reference.
resolveIdent in class GeneratedOrderByFragmentParserident - The node whose text represents either a column or property reference.protected antlr.collections.AST postProcessSortSpecification(antlr.collections.AST sortSpec)
GeneratedOrderByFragmentParserAllow post processing of each <tt>sort specification</tt>
postProcessSortSpecification in class GeneratedOrderByFragmentParserpublic void traceIn(String ruleName)
traceIn in class antlr.LLkParserpublic void traceOut(String ruleName)
traceOut in class antlr.LLkParserprotected void trace(String msg)
GeneratedOrderByFragmentParserMethod for logging execution trace information.
trace in class GeneratedOrderByFragmentParsermsg - The trace message.Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.