SQL Generator Tree Parser, providing SQL rendering of SQL ASTs produced by the previous phase, HqlSqlWalker. All
syntax decoration such as extra spaces, lack of spaces, extra parens, etc. should be added by this class.
This grammar processes the HQL/SQL AST and produces an SQL string. The intent is to move dialect-specific
code into a sub-class that will override some of the methods, just like the other two grammars in this system.
additiveExpr
public final void additiveExpr(AST _t)
throws RecognitionException
addrExpr
public final void addrExpr(AST _t)
throws RecognitionException
aggregate
public final void aggregate(AST _t)
throws RecognitionException
arguments
public final void arguments(AST _t)
throws RecognitionException
arithmeticExpr
public final void arithmeticExpr(AST _t)
throws RecognitionException
beginFunctionTemplate
protected void beginFunctionTemplate(AST m,
AST i)
binaryComparisonExpression
public final void binaryComparisonExpression(AST _t)
throws RecognitionException
booleanExpr
public final void booleanExpr(AST _t,
boolean parens)
throws RecognitionException
booleanOp
public final void booleanOp(AST _t,
boolean parens)
throws RecognitionException
caseExpr
public final void caseExpr(AST _t)
throws RecognitionException
commaBetweenParameters
protected void commaBetweenParameters(String comma)
comparisonExpr
public final void comparisonExpr(AST _t,
boolean parens)
throws RecognitionException
conditionList
public final void conditionList(AST _t)
throws RecognitionException
constant
public final void constant(AST _t)
throws RecognitionException
count
public final void count(AST _t)
throws RecognitionException
countExpr
public final void countExpr(AST _t)
throws RecognitionException
deleteStatement
public final void deleteStatement(AST _t)
throws RecognitionException
distinctOrAll
public final void distinctOrAll(AST _t)
throws RecognitionException
endFunctionTemplate
protected void endFunctionTemplate(AST m)
exoticComparisonExpression
public final void exoticComparisonExpression(AST _t)
throws RecognitionException
expr
public final void expr(AST _t)
throws RecognitionException
filters
public final void filters(AST _t)
throws RecognitionException
from
public final void from(AST _t)
throws RecognitionException
fromFragmentSeparator
protected void fromFragmentSeparator(AST a)
fromTable
public final void fromTable(AST _t)
throws RecognitionException
getLastChar
protected int getLastChar()
Returns the last character written to the output, or -1 if there isn't one.
getStringBuffer
protected StringBuffer getStringBuffer()
groupExprs
public final void groupExprs(AST _t)
throws RecognitionException
hasText
protected boolean hasText(AST a)
inList
public final void inList(AST _t)
throws RecognitionException
insertStatement
public final void insertStatement(AST _t)
throws RecognitionException
likeEscape
public final void likeEscape(AST _t)
throws RecognitionException
methodCall
public final void methodCall(AST _t)
throws RecognitionException
multiplicativeExpr
public final void multiplicativeExpr(AST _t)
throws RecognitionException
nestedExpr
public final void nestedExpr(AST _t)
throws RecognitionException
nestedExprAfterMinusDiv
public final void nestedExprAfterMinusDiv(AST _t)
throws RecognitionException
nestedFromFragment
protected void nestedFromFragment(AST d,
AST parent)
nyi
protected void nyi(AST n)
optionalSpace
protected void optionalSpace()
Add a aspace if the previous token was not a space or a parenthesis.
orderDirection
public final void orderDirection(AST _t)
throws RecognitionException
orderExprs
public final void orderExprs(AST _t)
throws RecognitionException
out
protected void out(AST n)
out
protected void out(String s)
parameter
public final void parameter(AST _t)
throws RecognitionException
parenSelect
public final void parenSelect(AST _t)
throws RecognitionException
quantified
public final void quantified(AST _t)
throws RecognitionException
selectAtom
public final void selectAtom(AST _t)
throws RecognitionException
selectClause
public final void selectClause(AST _t)
throws RecognitionException
selectColumn
public final void selectColumn(AST _t)
throws RecognitionException
selectExpr
public final void selectExpr(AST _t)
throws RecognitionException
selectStatement
public final void selectStatement(AST _t)
throws RecognitionException
separator
protected void separator(AST n,
String sep)
setClause
public final void setClause(AST _t)
throws RecognitionException
simpleExpr
public final void simpleExpr(AST _t)
throws RecognitionException
simpleExprList
public final void simpleExprList(AST _t)
throws RecognitionException
sqlToken
public final void sqlToken(AST _t)
throws RecognitionException
statement
public final void statement(AST _t)
throws RecognitionException
tableJoin
public final void tableJoin(AST _t,
AST parent)
throws RecognitionException
thetaJoins
public final void thetaJoins(AST _t)
throws RecognitionException
updateStatement
public final void updateStatement(AST _t)
throws RecognitionException
whereClause
public final void whereClause(AST _t)
throws RecognitionException
whereClauseExpr
public final void whereClauseExpr(AST _t)
throws RecognitionException
whereExpr
public final void whereExpr(AST _t)
throws RecognitionException