public final Block_endContext block_end() throws RecognitionException { Block_endContext _localctx = new Block_endContext(_ctx, getState()); enterRule(_localctx, 8, RULE_block_end); try { enterOuterAlt(_localctx, 1); { setState(489); if (!(!_input.LT(2).getText().equalsIgnoreCase("TRANSACTION"))) throw new FailedPredicateException(this, "!_input.LT(2).getText().equalsIgnoreCase(\"TRANSACTION\")"); setState(490); match(T_END); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; }
public final Expr_stmtContext expr_stmt() throws RecognitionException { Expr_stmtContext _localctx = new Expr_stmtContext(_ctx, getState()); enterRule(_localctx, 22, RULE_expr_stmt); try { enterOuterAlt(_localctx, 1); { setState(582); if (!(!_input.LT(1).getText().equalsIgnoreCase("GO"))) throw new FailedPredicateException(this, "!_input.LT(1).getText().equalsIgnoreCase(\"GO\")"); setState(583); expr(0); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; }
if (!(!_input.LT(1).getText().equalsIgnoreCase("EXEC") && !_input.LT(1).getText().equalsIgnoreCase("EXECUTE") && !_input.LT(1).getText().equalsIgnoreCase("INNER") && !_input.LT(1).getText().equalsIgnoreCase("LEFT") && !_input.LT(1).getText().equalsIgnoreCase("GROUP") && !_input.LT(1).getText().equalsIgnoreCase("ORDER") && !_input.LT(1).getText().equalsIgnoreCase("LIMIT") && !_input.LT(1).getText().equalsIgnoreCase("WITH"))) throw new FailedPredicateException(this, "!_input.LT(1).getText().equalsIgnoreCase(\"EXEC\") &&\n !_input.LT(1).getText().equalsIgnoreCase(\"EXECUTE\") && \n !_input.LT(1).getText().equalsIgnoreCase(\"INNER\") &&\n !_input.LT(1).getText().equalsIgnoreCase(\"LEFT\") &&\n !_input.LT(1).getText().equalsIgnoreCase(\"GROUP\") &&\n !_input.LT(1).getText().equalsIgnoreCase(\"ORDER\") &&\n !_input.LT(1).getText().equalsIgnoreCase(\"LIMIT\") &&\n !_input.LT(1).getText().equalsIgnoreCase(\"WITH\")"); setState(2419); switch ( getInterpreter().adaptivePredict(_input,297,_ctx) ) { case 1: ident(); setState(2432); switch ( getInterpreter().adaptivePredict(_input,299,_ctx) ) { case 1: match(L_ID); setState(2428); _errHandler.sync(this); _la = _input.LA(1); while (_la==T_COMMA) { _errHandler.sync(this); _la = _input.LA(1); _errHandler.reportError(this, re); _errHandler.recover(this, re);
if (!(!_input.LT(1).getText().equalsIgnoreCase("ALL"))) throw new FailedPredicateException(this, "!_input.LT(1).getText().equalsIgnoreCase(\"ALL\")"); setState(2602); switch ( getInterpreter().adaptivePredict(_input,328,_ctx) ) { case 1: _errHandler.reportError(this, re); _errHandler.recover(this, re);
try { setState(920); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,93,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); if (!(lineTerminatorAhead())) throw new FailedPredicateException(this, "lineTerminatorAhead()"); if (!(_input.LT(1).getText().equals("}") )) throw new FailedPredicateException(this, "_input.LT(1).getText().equals(\"}\") "); _errHandler.reportError(this, re); _errHandler.recover(this, re);
queryPrimary(); pushNewRecursionContext(_localctx, _startState, RULE_queryTerm); setState(593); if (!(precpred(_ctx, 2))) throw new FailedPredicateException(this, "precpred(_ctx, 2)"); setState(594); ((SetOperationContext)_localctx).operator = match(INTERSECT); setState(596); _errHandler.sync(this); _la = _input.LA(1); if (_la==ALL || _la==DISTINCT) { pushNewRecursionContext(_localctx, _startState, RULE_queryTerm); setState(599); if (!(precpred(_ctx, 1))) throw new FailedPredicateException(this, "precpred(_ctx, 1)"); setState(600); ((SetOperationContext)_localctx).operator = _input.LT(1); _la = _input.LA(1); if ( !(_la==EXCEPT || _la==UNION) ) { _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,64,_ctx); _errHandler.reportError(this, re); _errHandler.recover(this, re);
int _alt; setState(1565); switch ( getInterpreter().adaptivePredict(_input,162,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); _errHandler.sync(this); _la = _input.LA(1); if (!(!_input.LT(1).getText().equalsIgnoreCase("IS") && !_input.LT(1).getText().equalsIgnoreCase("AS") && !(_input.LT(1).getText().equalsIgnoreCase("DYNAMIC") && _input.LT(2).getText().equalsIgnoreCase("RESULT")) )) throw new FailedPredicateException(this, "!_input.LT(1).getText().equalsIgnoreCase(\"IS\") &&\n !_input.LT(1).getText().equalsIgnoreCase(\"AS\") &&\n !(_input.LT(1).getText().equalsIgnoreCase(\"DYNAMIC\") && _input.LT(2).getText().equalsIgnoreCase(\"RESULT\"))\n "); setState(1557); create_routine_param_item(); setState(1562); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,161,_ctx); while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { if ( _alt==1 ) { _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,161,_ctx); _errHandler.reportError(this, re); _errHandler.recover(this, re);
unaryExpr(); _ctx.stop = _input.LT(-1); setState(900); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,90,_ctx); while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { if ( _alt==1 ) { pushNewRecursionContext(_localctx, _startState, RULE_expression); setState(895); if (!(precpred(_ctx, 1))) throw new FailedPredicateException(this, "precpred(_ctx, 1)"); setState(896); _la = _input.LA(1); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,90,_ctx); _errHandler.reportError(this, re); _errHandler.recover(this, re);
if (!(!_input.LT(1).getText().equalsIgnoreCase("INTO"))) throw new FailedPredicateException(this, "!_input.LT(1).getText().equalsIgnoreCase(\"INTO\")"); setState(3234); switch ( getInterpreter().adaptivePredict(_input,407,_ctx) ) { case 1: _errHandler.reportError(this, re); _errHandler.recover(this, re);
pushNewRecursionContext(_localctx, _startState, RULE_booleanPrimary); setState(1372); if (!(precpred(_ctx, 5))) throw new FailedPredicateException(this, "precpred(_ctx, 5)"); setState(1373); match(IS); setState(1375); _errHandler.sync(this); _la = _input.LA(1); if (_la==NOT) { pushNewRecursionContext(_localctx, _startState, RULE_booleanPrimary); setState(1378); if (!(precpred(_ctx, 4))) throw new FailedPredicateException(this, "precpred(_ctx, 4)"); setState(1379); match(SAFE_EQ); pushNewRecursionContext(_localctx, _startState, RULE_booleanPrimary); setState(1381); if (!(precpred(_ctx, 3))) throw new FailedPredicateException(this, "precpred(_ctx, 3)"); setState(1382); comparisonOperator(); pushNewRecursionContext(_localctx, _startState, RULE_booleanPrimary); setState(1385); if (!(precpred(_ctx, 2))) throw new FailedPredicateException(this, "precpred(_ctx, 2)"); setState(1386); comparisonOperator();
pushNewRecursionContext(_localctx, _startState, RULE_booleanPrimary); setState(1178); if (!(precpred(_ctx, 5))) throw new FailedPredicateException(this, "precpred(_ctx, 5)"); setState(1179); match(IS); setState(1181); _errHandler.sync(this); _la = _input.LA(1); if (_la==NOT) { pushNewRecursionContext(_localctx, _startState, RULE_booleanPrimary); setState(1184); if (!(precpred(_ctx, 4))) throw new FailedPredicateException(this, "precpred(_ctx, 4)"); setState(1185); match(SAFE_EQ); pushNewRecursionContext(_localctx, _startState, RULE_booleanPrimary); setState(1187); if (!(precpred(_ctx, 3))) throw new FailedPredicateException(this, "precpred(_ctx, 3)"); setState(1188); comparisonOperator(); pushNewRecursionContext(_localctx, _startState, RULE_booleanPrimary); setState(1191); if (!(precpred(_ctx, 2))) throw new FailedPredicateException(this, "precpred(_ctx, 2)"); setState(1192); comparisonOperator();
pushNewRecursionContext(_localctx, _startState, RULE_booleanPrimary); setState(934); if (!(precpred(_ctx, 5))) throw new FailedPredicateException(this, "precpred(_ctx, 5)"); setState(935); match(IS); setState(937); _errHandler.sync(this); _la = _input.LA(1); if (_la==NOT) { pushNewRecursionContext(_localctx, _startState, RULE_booleanPrimary); setState(940); if (!(precpred(_ctx, 4))) throw new FailedPredicateException(this, "precpred(_ctx, 4)"); setState(941); match(SAFE_EQ); pushNewRecursionContext(_localctx, _startState, RULE_booleanPrimary); setState(943); if (!(precpred(_ctx, 3))) throw new FailedPredicateException(this, "precpred(_ctx, 3)"); setState(944); comparisonOperator(); pushNewRecursionContext(_localctx, _startState, RULE_booleanPrimary); setState(947); if (!(precpred(_ctx, 2))) throw new FailedPredicateException(this, "precpred(_ctx, 2)"); setState(948); comparisonOperator();
pushNewRecursionContext(_localctx, _startState, RULE_booleanPrimary); setState(972); if (!(precpred(_ctx, 5))) throw new FailedPredicateException(this, "precpred(_ctx, 5)"); setState(973); match(IS); setState(975); _errHandler.sync(this); _la = _input.LA(1); if (_la==NOT) { pushNewRecursionContext(_localctx, _startState, RULE_booleanPrimary); setState(978); if (!(precpred(_ctx, 4))) throw new FailedPredicateException(this, "precpred(_ctx, 4)"); setState(979); match(SAFE_EQ); pushNewRecursionContext(_localctx, _startState, RULE_booleanPrimary); setState(981); if (!(precpred(_ctx, 3))) throw new FailedPredicateException(this, "precpred(_ctx, 3)"); setState(982); comparisonOperator(); pushNewRecursionContext(_localctx, _startState, RULE_booleanPrimary); setState(985); if (!(precpred(_ctx, 2))) throw new FailedPredicateException(this, "precpred(_ctx, 2)"); setState(986); comparisonOperator();
try { setState(2328); switch ( getInterpreter().adaptivePredict(_input,282,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); if (!(!_input.LT(1).getText().equalsIgnoreCase("INTO") && !_input.LT(1).getText().equalsIgnoreCase("FROM"))) throw new FailedPredicateException(this, "!_input.LT(1).getText().equalsIgnoreCase(\"INTO\") && !_input.LT(1).getText().equalsIgnoreCase(\"FROM\")"); setState(2321); switch ( getInterpreter().adaptivePredict(_input,281,_ctx) ) { case 1: _errHandler.reportError(this, re); _errHandler.recover(this, re);
if (!( GrammarPredicates.isClassName(_input) )) throw new FailedPredicateException(this, " GrammarPredicates.isClassName(_input) "); setState(989); match(IDENTIFIER); setState(994); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,149,_ctx); while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { if ( _alt==1 ) { _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,149,_ctx); _errHandler.reportError(this, re); _errHandler.recover(this, re);
throw new NoViableAltException(this); pushNewRecursionContext(_localctx, _startState, RULE_valueExpression); setState(976); if (!(precpred(_ctx, 3))) throw new FailedPredicateException(this, "precpred(_ctx, 3)"); setState(977); ((ArithmeticBinaryContext)_localctx).operator = _input.LT(1); _la = _input.LA(1); if ( !(((((_la - 198)) & ~0x3f) == 0 && ((1L << (_la - 198)) & ((1L << (ASTERISK - 198)) | (1L << (SLASH - 198)) | (1L << (PERCENT - 198)))) != 0)) ) { pushNewRecursionContext(_localctx, _startState, RULE_valueExpression); setState(979); if (!(precpred(_ctx, 2))) throw new FailedPredicateException(this, "precpred(_ctx, 2)"); pushNewRecursionContext(_localctx, _startState, RULE_valueExpression); setState(982); if (!(precpred(_ctx, 1))) throw new FailedPredicateException(this, "precpred(_ctx, 1)"); setState(983); match(CONCAT); pushNewRecursionContext(_localctx, _startState, RULE_valueExpression); setState(985); if (!(precpred(_ctx, 5))) throw new FailedPredicateException(this, "precpred(_ctx, 5)"); setState(986); match(AT); _alt = getInterpreter().adaptivePredict(_input,123,_ctx);
_errHandler.sync(this); switch (_input.LA(1)) { case NULL: throw new NoViableAltException(this); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,1,_ctx) ) { case 1: pushNewRecursionContext(_localctx, _startState, RULE_expression); setState(28); if (!(precpred(_ctx, 2))) throw new FailedPredicateException(this, "precpred(_ctx, 2)"); setState(29); ((ArithmeticBinaryContext)_localctx).operator = _input.LT(1); _la = _input.LA(1); if ( !(_la==ASTERISK || _la==SLASH) ) { pushNewRecursionContext(_localctx, _startState, RULE_expression); setState(31); if (!(precpred(_ctx, 1))) throw new FailedPredicateException(this, "precpred(_ctx, 1)"); _alt = getInterpreter().adaptivePredict(_input,2,_ctx); _errHandler.reportError(this, re); _errHandler.recover(this, re);
_errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,74,_ctx) ) { case 1: if (!(noTerminatorBetween(2))) throw new FailedPredicateException(this, "noTerminatorBetween(2)"); setState(788); identifierList(); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,75,_ctx) ) { case 1: _errHandler.reportError(this, re); _errHandler.recover(this, re);
try { setState(673); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,56,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); if (!(noTerminatorAfterParams(1))) throw new FailedPredicateException(this, "noTerminatorAfterParams(1)"); setState(669); parameters(); _errHandler.reportError(this, re); _errHandler.recover(this, re);
_errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,1,_ctx); while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { if ( _alt==1 ) { _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,0,_ctx) ) { case 1: if (!(!isNextJavadocTag())) throw new FailedPredicateException(this, "!isNextJavadocTag()"); setState(192); match(LEADING_ASTERISK); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,1,_ctx); _errHandler.reportError(this, re); _errHandler.recover(this, re);