|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectantlr.TreeParser
org.makumba.providers.query.mql.MqlSqlGeneratorBase
org.makumba.providers.query.mql.MqlSqlGenerator
public class MqlSqlGenerator
Writing to SQL. This extends the class produced by mql-sql-gen.g which is adapted from Hibernate. To simplify porting of new versions, the class only redefines methods declared in mql-sql-gen.g. Operations redefined: 1) writing is done to a NameResolver.TextList instead of a StringBuffer to allow name-resolving later on 2) minor separator redefinitions
Nested Class Summary | |
---|---|
static class |
MqlSqlGenerator.FunctionArgumentWriter
|
Field Summary | |
---|---|
(package private) antlr.RecognitionException |
error
|
(package private) NameResolver.TextList |
text
|
Fields inherited from class org.makumba.providers.query.mql.MqlSqlGeneratorBase |
---|
_tokenNames, _tokenSet_0, _tokenSet_1, _tokenSet_2, _tokenSet_3, _tokenSet_4 |
Fields inherited from class antlr.TreeParser |
---|
_retTree, astFactory, ASTNULL, inputState, returnAST, tokenNames, traceDepth |
Constructor Summary | |
---|---|
MqlSqlGenerator()
|
Method Summary | |
---|---|
protected void |
beginFunctionTemplate(antlr.collections.AST m,
antlr.collections.AST i)
|
protected void |
commaBetweenParameters(String comma)
|
protected void |
endFunctionTemplate(antlr.collections.AST m)
|
protected void |
fromFragmentSeparator(antlr.collections.AST a)
|
protected boolean |
hasText(antlr.collections.AST a)
|
protected void |
out(antlr.collections.AST n)
|
protected void |
out(String s)
|
void |
reportError(antlr.RecognitionException e)
|
void |
reportError(String s)
|
void |
reportWarning(String s)
|
protected void |
separator(antlr.collections.AST n,
String sep)
|
String |
toString()
|
Methods inherited from class org.makumba.providers.query.mql.MqlSqlGeneratorBase |
---|
additiveExpr, addrExpr, aggregate, arguments, arithmeticExpr, binaryComparisonExpression, booleanExpr, booleanOp, caseExpr, comparisonExpr, conditionList, constant, count, countExpr, deleteStatement, distinctOrAll, exoticComparisonExpression, expr, filters, from, fromTable, getLastChar, getStringBuffer, groupExprs, inList, insertStatement, likeEscape, methodCall, multiplicativeExpr, nestedExpr, nestedExprAfterMinusDiv, nestedFromFragment, nyi, optionalSpace, orderDirection, orderExprs, parameter, parenSelect, quantified, selectAtom, selectClause, selectColumn, selectExpr, selectStatement, setClause, simpleExpr, simpleExprList, sqlToken, statement, tableJoin, thetaJoins, updateStatement, whereClause, whereClauseExpr, whereExpr |
Methods inherited from class antlr.TreeParser |
---|
getAST, getASTFactory, getTokenName, getTokenNames, match, match, matchNot, panic, setASTFactory, setASTNodeClass, setASTNodeType, traceIn, traceIndent, traceOut |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
NameResolver.TextList text
antlr.RecognitionException error
Constructor Detail |
---|
public MqlSqlGenerator()
Method Detail |
---|
protected void out(String s)
out
in class MqlSqlGeneratorBase
protected void out(antlr.collections.AST n)
out
in class MqlSqlGeneratorBase
public String toString()
toString
in class Object
public void reportError(antlr.RecognitionException e)
reportError
in class antlr.TreeParser
public void reportError(String s)
reportError
in class antlr.TreeParser
public void reportWarning(String s)
reportWarning
in class antlr.TreeParser
protected boolean hasText(antlr.collections.AST a)
hasText
in class MqlSqlGeneratorBase
protected void fromFragmentSeparator(antlr.collections.AST a)
fromFragmentSeparator
in class MqlSqlGeneratorBase
protected void separator(antlr.collections.AST n, String sep)
separator
in class MqlSqlGeneratorBase
protected void beginFunctionTemplate(antlr.collections.AST m, antlr.collections.AST i)
beginFunctionTemplate
in class MqlSqlGeneratorBase
protected void endFunctionTemplate(antlr.collections.AST m)
endFunctionTemplate
in class MqlSqlGeneratorBase
protected void commaBetweenParameters(String comma)
commaBetweenParameters
in class MqlSqlGeneratorBase
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |