isql
Class ISQLSelectParserWithErrors

java.lang.Object
  extended by org.antlr.runtime.BaseRecognizer
      extended by org.antlr.runtime.Parser
          extended by isql.ISQLSelectParser
              extended by isql.ISQLSelectParserWithErrors

public class ISQLSelectParserWithErrors
extends ISQLSelectParser

extends ISQLSelectParser (which is generated by ANTLR) to log all the errors reported by ANTLR when parsing the SQL query. Otherwise these errors would be lost

Author:
SHZ Nov 8, 2007

Nested Class Summary
 
Nested classes/interfaces inherited from class isql.ISQLSelectParser
ISQLSelectParser.arithmeticOperator_return, ISQLSelectParser.binaryOperator_return, ISQLSelectParser.bitwiseOperator_return, ISQLSelectParser.BooleanConstant, ISQLSelectParser.booleanValue_return, ISQLSelectParser.CaseFunction, ISQLSelectParser.caseFunction_return, ISQLSelectParser.CaseSubExpression, ISQLSelectParser.caseWhen_return, ISQLSelectParser.Comparison, ISQLSelectParser.comparisonOperator_return, ISQLSelectParser.ComplexExpression, ISQLSelectParser.ComplexSearchCondition, ISQLSelectParser.constant_return, ISQLSelectParser.constantSequence_return, ISQLSelectParser.ConstantSubExpression, ISQLSelectParser.DateConstant, ISQLSelectParser.ExpressionSubExpression, ISQLSelectParser.fromClause_return, ISQLSelectParser.Function, ISQLSelectParser.function_return, ISQLSelectParser.FunctionSubExpression, ISQLSelectParser.groupByClause_return, ISQLSelectParser.IConstant, ISQLSelectParser.IExpression, ISQLSelectParser.In, ISQLSelectParser.IPredicate, ISQLSelectParser.ISearchCondition, ISQLSelectParser.Like, ISQLSelectParser.logicalOperator_return, ISQLSelectParser.NegatePredicate, ISQLSelectParser.NumberConstant, ISQLSelectParser.OrderBy, ISQLSelectParser.orderByClause_return, ISQLSelectParser.orderByExpression_return, ISQLSelectParser.predicate_return, ISQLSelectParser.PredicateCondition, ISQLSelectParser.RecursiveCondition, ISQLSelectParser.searchCondition_return, ISQLSelectParser.selectClause_return, ISQLSelectParser.selectExpression_return, ISQLSelectParser.SelectItem, ISQLSelectParser.selectItem_return, ISQLSelectParser.selectList_return, ISQLSelectParser.selectStatement_return, ISQLSelectParser.selectSubExpression_return, ISQLSelectParser.SimpleExpression, ISQLSelectParser.SimpleSearchCondition, ISQLSelectParser.statement_return, ISQLSelectParser.StringConstant, ISQLSelectParser.SubExpression, ISQLSelectParser.SubSearchCondition, ISQLSelectParser.subSearchCondition_return, ISQLSelectParser.TableColumn, ISQLSelectParser.tableColumn_return, ISQLSelectParser.TableColumnSubExpression, ISQLSelectParser.TableSource, ISQLSelectParser.tableSource_return, ISQLSelectParser.unaryOperator_return, ISQLSelectParser.When, ISQLSelectParser.WhenThen, ISQLSelectParser.whereClause_return, ISQLSelectParser.whereExpression_return, ISQLSelectParser.whereSubExpression_return
 
Field Summary
 
Fields inherited from class isql.ISQLSelectParser
AMPERSAND, BITWISEOR, BITWISEXOR, COLON, COMMA, DateLiteral, Digit, DIVIDE, DOT, EOF, EQUAL, Exponent, FOLLOW_35_in_selectClause145, FOLLOW_38_in_whereClause192, FOLLOW_39_in_orderByClause219, FOLLOW_40_in_groupByClause381, FOLLOW_40_in_orderByClause221, FOLLOW_45_in_groupByClause379, FOLLOW_46_in_subSearchCondition434, FOLLOW_47_in_predicate566, FOLLOW_48_in_predicate586, FOLLOW_49_in_selectItem735, FOLLOW_49_in_tableSource853, FOLLOW_50_in_fromClause766, FOLLOW_51_in_caseFunction1440, FOLLOW_52_in_caseFunction1457, FOLLOW_53_in_caseFunction1461, FOLLOW_54_in_caseFunction1497, FOLLOW_55_in_caseFunction1512, FOLLOW_arithmeticOperator_in_binaryOperator1565, FOLLOW_binaryOperator_in_selectExpression951, FOLLOW_binaryOperator_in_whereExpression1126, FOLLOW_bitwiseOperator_in_binaryOperator1569, FOLLOW_booleanValue_in_constant1386, FOLLOW_caseFunction_in_selectSubExpression1060, FOLLOW_caseWhen_in_caseFunction1459, FOLLOW_COMMA_in_constantSequence640, FOLLOW_COMMA_in_fromClause781, FOLLOW_COMMA_in_function1303, FOLLOW_COMMA_in_groupByClause394, FOLLOW_COMMA_in_orderByClause234, FOLLOW_COMMA_in_selectList695, FOLLOW_COMMA_in_tableSource835, FOLLOW_comparisonOperator_in_caseWhen1416, FOLLOW_comparisonOperator_in_predicate550, FOLLOW_constant_in_caseWhen1418, FOLLOW_constant_in_constantSequence631, FOLLOW_constant_in_constantSequence644, FOLLOW_constant_in_selectSubExpression1015, FOLLOW_constant_in_whereSubExpression1190, FOLLOW_constantSequence_in_predicate591, FOLLOW_DateLiteral_in_constant1376, FOLLOW_DOT_in_tableColumn901, FOLLOW_EOF_in_statement67, FOLLOW_fromClause_in_selectStatement91, FOLLOW_function_in_selectSubExpression1025, FOLLOW_groupByClause_in_selectStatement107, FOLLOW_Identifier_in_function1263, FOLLOW_Identifier_in_selectItem740, FOLLOW_Identifier_in_tableColumn899, FOLLOW_Identifier_in_tableColumn905, FOLLOW_Identifier_in_tableSource824, FOLLOW_Identifier_in_tableSource839, FOLLOW_Identifier_in_tableSource857, FOLLOW_LPAREN_in_function1271, FOLLOW_LPAREN_in_predicate588, FOLLOW_LPAREN_in_selectSubExpression1035, FOLLOW_LPAREN_in_subSearchCondition464, FOLLOW_LPAREN_in_synpred14464, FOLLOW_LPAREN_in_whereSubExpression1200, FOLLOW_LSQUARE_in_tableSource820, FOLLOW_Number_in_constant1356, FOLLOW_orderByClause_in_selectStatement116, FOLLOW_orderByExpression_in_orderByClause225, FOLLOW_orderByExpression_in_orderByClause238, FOLLOW_predicate_in_subSearchCondition488, FOLLOW_RPAREN_in_function1328, FOLLOW_RPAREN_in_predicate594, FOLLOW_RPAREN_in_selectSubExpression1039, FOLLOW_RPAREN_in_subSearchCondition470, FOLLOW_RPAREN_in_synpred14470, FOLLOW_RPAREN_in_whereSubExpression1204, FOLLOW_RSQUARE_in_tableSource851, FOLLOW_searchCondition_in_subSearchCondition468, FOLLOW_searchCondition_in_synpred14468, FOLLOW_searchCondition_in_whereClause194, FOLLOW_selectClause_in_selectStatement85, FOLLOW_selectExpression_in_caseFunction1465, FOLLOW_selectExpression_in_caseFunction1501, FOLLOW_selectExpression_in_function1287, FOLLOW_selectExpression_in_function1307, FOLLOW_selectExpression_in_selectItem732, FOLLOW_selectExpression_in_selectSubExpression1037, FOLLOW_selectItem_in_selectList684, FOLLOW_selectItem_in_selectList700, FOLLOW_selectList_in_selectClause169, FOLLOW_selectStatement_in_statement65, FOLLOW_selectSubExpression_in_selectExpression938, FOLLOW_selectSubExpression_in_selectExpression955, FOLLOW_set_in_arithmeticOperator0, FOLLOW_set_in_bitwiseOperator0, FOLLOW_set_in_booleanValue0, FOLLOW_set_in_comparisonOperator0, FOLLOW_set_in_logicalOperator0, FOLLOW_set_in_orderByExpression286, FOLLOW_set_in_searchCondition337, FOLLOW_set_in_selectClause150, FOLLOW_set_in_unaryOperator0, FOLLOW_StringLiteral_in_constant1366, FOLLOW_StringLiteral_in_predicate570, FOLLOW_subSearchCondition_in_searchCondition325, FOLLOW_subSearchCondition_in_searchCondition347, FOLLOW_tableColumn_in_caseFunction1442, FOLLOW_tableColumn_in_caseWhen1414, FOLLOW_tableColumn_in_groupByClause385, FOLLOW_tableColumn_in_groupByClause396, FOLLOW_tableColumn_in_orderByExpression275, FOLLOW_tableColumn_in_selectSubExpression1049, FOLLOW_tableColumn_in_whereSubExpression1214, FOLLOW_tableSource_in_fromClause770, FOLLOW_tableSource_in_fromClause785, FOLLOW_unaryOperator_in_selectSubExpression997, FOLLOW_unaryOperator_in_whereSubExpression1172, FOLLOW_whereClause_in_selectStatement98, FOLLOW_whereExpression_in_predicate538, FOLLOW_whereExpression_in_predicate554, FOLLOW_whereExpression_in_whereSubExpression1202, FOLLOW_whereSubExpression_in_whereExpression1113, FOLLOW_whereSubExpression_in_whereExpression1130, GREATERTHAN, GREATERTHANOREQUALTO, Identifier, LESSTHAN, LESSTHANOREQUALTO, Letter, LPAREN, LSQUARE, MINUS, MOD, NOTEQUAL, Number, PLUS, RPAREN, RSQUARE, SEMICOLON, STAR, StringLiteral, TILDE, tokenNames, WS
 
Fields inherited from class org.antlr.runtime.BaseRecognizer
DEFAULT_TOKEN_CHANNEL, HIDDEN, INITIAL_FOLLOW_STACK_SIZE, MEMO_RULE_FAILED, MEMO_RULE_FAILED_I, MEMO_RULE_UNKNOWN, NEXT_TOKEN_RULE_NAME
 
Constructor Summary
ISQLSelectParserWithErrors(org.antlr.runtime.TokenStream input)
          Wraps the constructor of ISQLSelectParser
 
Method Summary
 java.util.List<org.antlr.runtime.RecognitionException> getExceptions()
          Returns the error, so that they can be showed to the user
 void reportError(org.antlr.runtime.RecognitionException ex)
           
 
Methods inherited from class isql.ISQLSelectParser
arithmeticOperator, binaryOperator, bitwiseOperator, booleanValue, caseFunction, caseWhen, comparisonOperator, constant, constantSequence, fromClause, function, getGrammarFileName, getGroupBys, getOrderBys, getSelectItems, getTableSources, getTokenNames, getTreeAdaptor, getWhere, groupByClause, isDistinct, logicalOperator, orderByClause, orderByExpression, predicate, searchCondition, selectClause, selectExpression, selectItem, selectList, selectStatement, selectSubExpression, setTreeAdaptor, statement, subSearchCondition, synpred14_fragment, synpred14, tableColumn, tableSource, unaryOperator, whereClause, whereExpression, whereSubExpression
 
Methods inherited from class org.antlr.runtime.Parser
getTokenStream, reset, setTokenStream, traceIn, traceOut
 
Methods inherited from class org.antlr.runtime.BaseRecognizer
alreadyParsedRule, beginResync, consumeUntil, consumeUntil, displayRecognitionError, emitErrorMessage, endResync, getBacktrackingLevel, getErrorHeader, getErrorMessage, getRuleInvocationStack, getRuleInvocationStack, getRuleMemoization, getRuleMemoizationCacheSize, getTokenErrorDisplay, match, matchAny, memoize, recover, recoverFromMismatchedSet, recoverFromMismatchedToken, toStrings, traceIn, traceOut
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ISQLSelectParserWithErrors

public ISQLSelectParserWithErrors(org.antlr.runtime.TokenStream input)
Wraps the constructor of ISQLSelectParser

Parameters:
input -
Method Detail

reportError

public void reportError(org.antlr.runtime.RecognitionException ex)
Overrides:
reportError in class org.antlr.runtime.BaseRecognizer

getExceptions

public java.util.List<org.antlr.runtime.RecognitionException> getExceptions()
Returns the error, so that they can be showed to the user

Returns:
the list of errors/exceptions