final public WhileStatement whileStatement(ParseInfo info) throws ParseException { WhileStatement whileStmt = null; Criteria criteria = null; Statement stmt = null; jj_consume_token(WHILE); jj_consume_token(LPAREN); criteria = criteria(info); jj_consume_token(RPAREN); stmt = statement(info); whileStmt = new WhileStatement(criteria, asBlock(stmt)); {if (true) return whileStmt;} throw new Error("Missing return statement in function"); }
final public WhileStatement whileStatement(ParseInfo info) throws ParseException { WhileStatement whileStmt = null; Criteria criteria = null; Statement stmt = null; jj_consume_token(WHILE); jj_consume_token(LPAREN); criteria = criteria(info); jj_consume_token(RPAREN); stmt = statement(info); whileStmt = new WhileStatement(criteria, asBlock(stmt)); {if (true) return whileStmt;} throw new Error("Missing return statement in function"); }
final public WhileStatement whileStatement(ParseInfo info) throws ParseException { WhileStatement whileStmt = null; Criteria criteria = null; Statement stmt = null; jj_consume_token(WHILE); jj_consume_token(LPAREN); criteria = criteria(info); jj_consume_token(RPAREN); stmt = statement(info); whileStmt = new WhileStatement(criteria, asBlock(stmt)); {if (true) return whileStmt;} throw new Error("Missing return statement in function"); }
final public IfStatement ifStatement(ParseInfo info) throws ParseException { IfStatement ifStmt = null; Criteria criteria = null; Statement ifStatement = null; Statement elseStatement = null; String groupID = null; String groupID2 = null; boolean not = false; jj_consume_token(IF); jj_consume_token(LPAREN); criteria = criteria(info); jj_consume_token(RPAREN); ifStatement = statement(info); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case ELSE: jj_consume_token(ELSE); elseStatement = statement(info); break; default: jj_la1[43] = jj_gen; ; } ifStmt = new IfStatement(criteria, asBlock(ifStatement)); ifStmt.setElseBlock(asBlock(elseStatement)); {if (true) return ifStmt;} throw new Error("Missing return statement in function"); }
final public IfStatement ifStatement(ParseInfo info) throws ParseException { IfStatement ifStmt = null; Criteria criteria = null; Statement ifStatement = null; Statement elseStatement = null; String groupID = null; String groupID2 = null; boolean not = false; jj_consume_token(IF); jj_consume_token(LPAREN); criteria = criteria(info); jj_consume_token(RPAREN); ifStatement = statement(info); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case ELSE: jj_consume_token(ELSE); elseStatement = statement(info); break; default: jj_la1[43] = jj_gen; ; } ifStmt = new IfStatement(criteria, asBlock(ifStatement)); ifStmt.setElseBlock(asBlock(elseStatement)); {if (true) return ifStmt;} throw new Error("Missing return statement in function"); }
final public CreateProcedureCommand createProcedure(ParseInfo info) throws ParseException { CreateProcedureCommand procCmd = new CreateProcedureCommand(); Statement stmt = null; jj_consume_token(CREATE); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case VIRTUAL: jj_consume_token(VIRTUAL); break; default: jj_la1[53] = jj_gen; ; } jj_consume_token(PROCEDURE); stmt = statement(info); procCmd.setBlock(asBlock(stmt)); {if (true) return procCmd;} throw new Error("Missing return statement in function"); }
final public CreateProcedureCommand createProcedure(ParseInfo info) throws ParseException { CreateProcedureCommand procCmd = new CreateProcedureCommand(); Statement stmt = null; jj_consume_token(CREATE); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case VIRTUAL: jj_consume_token(VIRTUAL); break; default: jj_la1[53] = jj_gen; ; } jj_consume_token(PROCEDURE); stmt = statement(info); procCmd.setBlock(asBlock(stmt)); {if (true) return procCmd;} throw new Error("Missing return statement in function"); }
final public CreateProcedureCommand createProcedure(ParseInfo info) throws ParseException { CreateProcedureCommand procCmd = new CreateProcedureCommand(); Statement stmt = null; jj_consume_token(CREATE); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case VIRTUAL: jj_consume_token(VIRTUAL); break; default: jj_la1[54] = jj_gen; ; } jj_consume_token(PROCEDURE); stmt = statement(info); procCmd.setBlock(asBlock(stmt)); {if (true) return procCmd;} throw new Error("Missing return statement in function"); }
private void helpStmtTest(String stmt, String expectedString, Statement expectedStmt) throws ParseException { Statement actualStmt = new SQLParser(new StringReader(stmt)).statement(new ParseInfo()); String actualString = actualStmt.toString(); assertEquals("Parse string does not match: ", expectedString, actualString); //$NON-NLS-1$ assertEquals("Language objects do not match: ", expectedStmt, actualStmt); //$NON-NLS-1$ }
final public LoopStatement loopStatement(ParseInfo info) throws ParseException { LoopStatement loopStmt = null; String cursor = null; QueryCommand query = null; Statement stmt = null; jj_consume_token(LOOP); jj_consume_token(ON); jj_consume_token(LPAREN); query = queryExpression(info); jj_consume_token(RPAREN); jj_consume_token(AS); cursor = id(null); stmt = statement(info); loopStmt = new LoopStatement(asBlock(stmt), query, cursor); {if (true) return loopStmt;} throw new Error("Missing return statement in function"); }
final public LoopStatement loopStatement(ParseInfo info) throws ParseException { LoopStatement loopStmt = null; String cursor = null; QueryCommand query = null; Statement stmt = null; jj_consume_token(LOOP); jj_consume_token(ON); jj_consume_token(LPAREN); query = queryExpression(info); jj_consume_token(RPAREN); jj_consume_token(AS); cursor = id(null); stmt = statement(info); loopStmt = new LoopStatement(asBlock(stmt), query, cursor); {if (true) return loopStmt;} throw new Error("Missing return statement in function"); }
final public LoopStatement loopStatement(ParseInfo info) throws ParseException { LoopStatement loopStmt = null; String cursor = null; QueryCommand query = null; Statement stmt = null; jj_consume_token(LOOP); jj_consume_token(ON); jj_consume_token(LPAREN); query = queryExpression(info); jj_consume_token(RPAREN); jj_consume_token(AS); cursor = id(null); stmt = statement(info); loopStmt = new LoopStatement(asBlock(stmt), query, cursor); {if (true) return loopStmt;} throw new Error("Missing return statement in function"); }
final public CreateProcedureCommand procedureBodyCommand(ParseInfo info) throws ParseException { CreateProcedureCommand procCmd = new CreateProcedureCommand(); Statement stmt = null; if (jj_2_12(2)) { jj_consume_token(CREATE); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case VIRTUAL: jj_consume_token(VIRTUAL); break; default: jj_la1[55] = jj_gen; ; } jj_consume_token(PROCEDURE); } else { ; } stmt = statement(info); procCmd.setBlock(asBlock(stmt)); {if (true) return procCmd;} throw new Error("Missing return statement in function"); }
final public CreateProcedureCommand procedureBodyCommand(ParseInfo info) throws ParseException { CreateProcedureCommand procCmd = new CreateProcedureCommand(); Statement stmt = null; if (jj_2_11(2)) { jj_consume_token(CREATE); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case VIRTUAL: jj_consume_token(VIRTUAL); break; default: jj_la1[54] = jj_gen; ; } jj_consume_token(PROCEDURE); } else { ; } stmt = statement(info); procCmd.setBlock(asBlock(stmt)); {if (true) return procCmd;} throw new Error("Missing return statement in function"); }
final public CreateProcedureCommand procedureBodyCommand(ParseInfo info) throws ParseException { CreateProcedureCommand procCmd = new CreateProcedureCommand(); Statement stmt = null; if (jj_2_11(2)) { jj_consume_token(CREATE); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case VIRTUAL: jj_consume_token(VIRTUAL); break; default: jj_la1[54] = jj_gen; ; } jj_consume_token(PROCEDURE); } else { ; } stmt = statement(info); procCmd.setBlock(asBlock(stmt)); {if (true) return procCmd;} throw new Error("Missing return statement in function"); }
private void helpBlockTest(String block, String expectedString, Block expectedBlock) throws ParseException { Block actualBlock = SQLParserUtil.asBlock(new SQLParser(new StringReader(block)).statement(new ParseInfo())); String actualString = actualBlock.toString(); assertEquals("Parse string does not match: ", expectedString, actualString); //$NON-NLS-1$ assertEquals("Block does not match: ", expectedBlock, actualBlock); //$NON-NLS-1$ }
jj_consume_token(AS); comment = getToken(1).specialToken; stmt = statement(info); CreateProcedureCommand cup = new CreateProcedureCommand(asBlock(stmt)); if (comment != null) {
jj_consume_token(AS); comment = getToken(1).specialToken; stmt = statement(info); CreateProcedureCommand cup = new CreateProcedureCommand(asBlock(stmt)); if (comment != null) {
jj_consume_token(AS); comment = getToken(1).specialToken; stmt = statement(info); CreateProcedureCommand cup = new CreateProcedureCommand(asBlock(stmt)); if (comment != null) {