org.hibernate.sql.ordering.antlr
Class GeneratedOrderByFragmentRenderer

java.lang.Object
  extended by antlr.TreeParser
      extended by org.hibernate.sql.ordering.antlr.GeneratedOrderByFragmentRenderer
All Implemented Interfaces:
GeneratedOrderByFragmentRendererTokenTypes
Direct Known Subclasses:
OrderByFragmentRenderer

public class GeneratedOrderByFragmentRenderer
extends antlr.TreeParser
implements GeneratedOrderByFragmentRendererTokenTypes

Antlr grammar for rendering ORDER_BY trees as described by the OrderByFragmentParser


Field Summary
static String[] _tokenNames
           
 
Fields inherited from class antlr.TreeParser
_retTree, astFactory, ASTNULL, inputState, returnAST, tokenNames, traceDepth
 
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
GeneratedOrderByFragmentRenderer()
           
 
Method Summary
 String collationSpecification(antlr.collections.AST _t)
           
 String nullOrdering(antlr.collections.AST _t)
           
 void orderByFragment(antlr.collections.AST _t)
           
 String orderingSpecification(antlr.collections.AST _t)
           
protected  void out(antlr.collections.AST ast)
           
protected  void out(String text)
           
protected  String renderOrderByElement(String expression, String collation, String order, String nulls)
          Implementation note: This is just a stub.
 void sortKey(antlr.collections.AST _t)
           
 String sortKeySpecification(antlr.collections.AST _t)
           
 void sortSpecification(antlr.collections.AST _t)
           
 
Methods inherited from class antlr.TreeParser
getAST, getASTFactory, getTokenName, getTokenNames, match, match, matchNot, panic, reportError, reportError, reportWarning, setASTFactory, setASTNodeClass, setASTNodeType, traceIn, traceIndent, traceOut
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_tokenNames

public static final String[] _tokenNames
Constructor Detail

GeneratedOrderByFragmentRenderer

public GeneratedOrderByFragmentRenderer()
Method Detail

out

protected void out(String text)

out

protected void out(antlr.collections.AST ast)

renderOrderByElement

protected String renderOrderByElement(String expression,
                                      String collation,
                                      String order,
                                      String nulls)
Implementation note: This is just a stub. OrderByFragmentRenderer contains the effective implementation.


orderByFragment

public final void orderByFragment(antlr.collections.AST _t)
                           throws antlr.RecognitionException
Throws:
antlr.RecognitionException

sortSpecification

public final void sortSpecification(antlr.collections.AST _t)
                             throws antlr.RecognitionException
Throws:
antlr.RecognitionException

sortKeySpecification

public final String sortKeySpecification(antlr.collections.AST _t)
                                  throws antlr.RecognitionException
Throws:
antlr.RecognitionException

collationSpecification

public final String collationSpecification(antlr.collections.AST _t)
                                    throws antlr.RecognitionException
Throws:
antlr.RecognitionException

orderingSpecification

public final String orderingSpecification(antlr.collections.AST _t)
                                   throws antlr.RecognitionException
Throws:
antlr.RecognitionException

nullOrdering

public final String nullOrdering(antlr.collections.AST _t)
                          throws antlr.RecognitionException
Throws:
antlr.RecognitionException

sortKey

public final void sortKey(antlr.collections.AST _t)
                   throws antlr.RecognitionException
Throws:
antlr.RecognitionException


Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.