类 OrderByFragmentParser
- java.lang.Object
-
- antlr.Parser
-
- antlr.LLkParser
-
- org.hibernate.sql.ordering.antlr.GeneratedOrderByFragmentParser
-
- org.hibernate.sql.ordering.antlr.OrderByFragmentParser
-
- 所有已实现的接口:
OrderByTemplateTokenTypes
public class OrderByFragmentParser extends GeneratedOrderByFragmentParser
Extension of the Antlr-generated parser for the purpose of adding our custom parsing behavior (semantic analysis, etc).- 作者:
- Steve Ebersole
-
-
字段概要
-
从类继承的字段 org.hibernate.sql.ordering.antlr.GeneratedOrderByFragmentParser
_tokenNames, _tokenSet_0, _tokenSet_1, _tokenSet_2, _tokenSet_3, _tokenSet_4, _tokenSet_5, _tokenSet_6, _tokenSet_7, _tokenSet_8, _tokenSet_9
-
从接口继承的字段 org.hibernate.sql.ordering.antlr.OrderByTemplateTokenTypes
ASCENDING, 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
-
-
构造器概要
构造器 构造器 说明 OrderByFragmentParser(antlr.TokenStream lexer, TranslationContext context)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 Set<String>getColumnReferences()protected booleanisFunctionName(antlr.collections.AST ast)A check to see if the text of the given node represents a known function name.protected antlr.collections.ASTpostProcessSortSpecification(antlr.collections.AST sortSpec)Allow post processing of each sort specificationprotected antlr.collections.ASTquotedIdentifier(antlr.collections.AST ident)Process the given node as a quote identifier.protected antlr.collections.ASTquotedString(antlr.collections.AST ident)Process the given node as a quote string.protected antlr.collections.ASTresolveFunction(antlr.collections.AST ast)Process the given node as a function.protected antlr.collections.ASTresolveIdent(antlr.collections.AST ident)Process the given node as an IDENT.protected voidtrace(String msg)Method for logging execution trace information.voidtraceIn(String ruleName)voidtraceOut(String ruleName)-
从类继承的方法 org.hibernate.sql.ordering.antlr.GeneratedOrderByFragmentParser
buildTokenTypeASTClassMap, collationName, collationSpecification, expression, extractText, functionCall, functionCallCheck, functionName, functionParameter, functionParameterList, nullOrdering, nullPrecedence, orderByFragment, orderingSpecification, simplePropertyPath, sortKey, sortSpecification
-
从类继承的方法 antlr.Parser
addMessageListener, 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, traceIndent
-
-
-
-
构造器详细资料
-
OrderByFragmentParser
public OrderByFragmentParser(antlr.TokenStream lexer, TranslationContext context)
-
-
方法详细资料
-
quotedIdentifier
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在类中GeneratedOrderByFragmentParser- 参数:
ident- The quoted-identifier node.- 返回:
- The processed node.
- 另请参阅:
Dialect.quote(java.lang.String)
-
quotedString
protected antlr.collections.AST quotedString(antlr.collections.AST ident)
从类复制的说明:GeneratedOrderByFragmentParserProcess the given node as a quote string.- 覆盖:
quotedString在类中GeneratedOrderByFragmentParser- 参数:
ident- The quoted string. This is used from within function param recognition, and represents a SQL-quoted string.- 返回:
- The processed node.
-
isFunctionName
protected boolean isFunctionName(antlr.collections.AST ast)
从类复制的说明:GeneratedOrderByFragmentParserA check to see if the text of the given node represents a known function name.- 覆盖:
isFunctionName在类中GeneratedOrderByFragmentParser- 参数:
ast- The node whose text we want to check.- 返回:
- True if the node's text is a known function name, false otherwise.
- 另请参阅:
SQLFunctionRegistry
-
resolveFunction
protected antlr.collections.AST resolveFunction(antlr.collections.AST ast)
从类复制的说明:GeneratedOrderByFragmentParserProcess the given node as a function.- 覆盖:
resolveFunction在类中GeneratedOrderByFragmentParser- 参数:
ast- The node representing the function invocation (including parameters as subtree components).- 返回:
- The processed node.
-
resolveIdent
protected 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在类中GeneratedOrderByFragmentParser- 参数:
ident- The node whose text represents either a column or property reference.- 返回:
- The processed node.
-
postProcessSortSpecification
protected antlr.collections.AST postProcessSortSpecification(antlr.collections.AST sortSpec)
从类复制的说明:GeneratedOrderByFragmentParserAllow post processing of each sort specification- 覆盖:
postProcessSortSpecification在类中GeneratedOrderByFragmentParser- 参数:
sortSpec- The grammar-built sort specification subtree.- 返回:
- The processed sort specification subtree.
-
traceIn
public void traceIn(String ruleName)
- 覆盖:
traceIn在类中antlr.LLkParser
-
traceOut
public void traceOut(String ruleName)
- 覆盖:
traceOut在类中antlr.LLkParser
-
trace
protected void trace(String msg)
从类复制的说明:GeneratedOrderByFragmentParserMethod for logging execution trace information.- 覆盖:
trace在类中GeneratedOrderByFragmentParser- 参数:
msg- The trace message.
-
-