Package org.hibernate.sql.ordering.antlr
Class OrderByFragmentRenderer
- java.lang.Object
-
- antlr.TreeParser
-
- org.hibernate.sql.ordering.antlr.GeneratedOrderByFragmentRenderer
-
- org.hibernate.sql.ordering.antlr.OrderByFragmentRenderer
-
- All Implemented Interfaces:
GeneratedOrderByFragmentRendererTokenTypes
public class OrderByFragmentRenderer extends GeneratedOrderByFragmentRenderer
Extension of the Antlr-generated tree walker for rendering the parsed order-by tree back to String form.out(antlr.collections.AST)is the sole semantic action here and it is used to utilize our split between text (tree debugging text) and "renderable text" (text to use during rendering).
-
-
Field Summary
-
Fields inherited from class org.hibernate.sql.ordering.antlr.GeneratedOrderByFragmentRenderer
_tokenNames
-
Fields inherited from class antlr.TreeParser
_retTree, astFactory, ASTNULL, inputState, returnAST, tokenNames
-
Fields inherited from interface org.hibernate.sql.ordering.antlr.GeneratedOrderByFragmentRendererTokenTypes
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
-
-
Constructor Summary
Constructors Constructor Description OrderByFragmentRenderer(SessionFactoryImplementor sessionFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidout(antlr.collections.AST ast)protected java.lang.StringrenderOrderByElement(java.lang.String expression, java.lang.String collation, java.lang.String order, java.lang.String nulls)Implementation note: This is just a stub.voidtraceIn(java.lang.String ruleName, antlr.collections.AST tree)voidtraceOut(java.lang.String ruleName, antlr.collections.AST tree)-
Methods inherited from class org.hibernate.sql.ordering.antlr.GeneratedOrderByFragmentRenderer
collationSpecification, nullOrdering, orderByFragment, orderingSpecification, out, sortKey, sortKeySpecification, sortSpecification
-
-
-
-
Constructor Detail
-
OrderByFragmentRenderer
public OrderByFragmentRenderer(SessionFactoryImplementor sessionFactory)
-
-
Method Detail
-
out
protected void out(antlr.collections.AST ast)
- Overrides:
outin classGeneratedOrderByFragmentRenderer
-
traceIn
public void traceIn(java.lang.String ruleName, antlr.collections.AST tree)- Overrides:
traceInin classantlr.TreeParser
-
traceOut
public void traceOut(java.lang.String ruleName, antlr.collections.AST tree)- Overrides:
traceOutin classantlr.TreeParser
-
renderOrderByElement
protected java.lang.String renderOrderByElement(java.lang.String expression, java.lang.String collation, java.lang.String order, java.lang.String nulls)Description copied from class:GeneratedOrderByFragmentRendererImplementation note: This is just a stub. OrderByFragmentRenderer contains the effective implementation.- Overrides:
renderOrderByElementin classGeneratedOrderByFragmentRenderer
-
-