in netflix-sel/src/main/java/com/netflix/sel/ast/SelParser.java [2118:2219]
public final void ForStatement() throws ParseException {
/*@bgen(jjtree) ForStatement */
ASTForStatement jjtn000 = new ASTForStatement(this, JJTFORSTATEMENT);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
jjtn000.jjtSetFirstToken(getToken(1));
try {
jj_consume_token(FOR);
jj_consume_token(LPAREN);
switch (jj_nt.kind) {
case BOOLEAN:
case DOUBLE:
case FALSE:
case FLOAT:
case INT:
case LONG:
case NEW:
case NULL:
case TRUE:
case INTEGER_LITERAL:
case FLOATING_POINT_LITERAL:
case STRING_LITERAL:
case IDENTIFIER:
case LPAREN:
{
ForInit();
break;
}
default:
jj_la1[41] = jj_gen;
;
}
jj_consume_token(SEMICOLON);
switch (jj_nt.kind) {
case FALSE:
case NEW:
case NULL:
case TRUE:
case INTEGER_LITERAL:
case FLOATING_POINT_LITERAL:
case STRING_LITERAL:
case IDENTIFIER:
case LPAREN:
case BANG:
case PLUS:
case MINUS:
{
Expression();
break;
}
default:
jj_la1[42] = jj_gen;
;
}
jj_consume_token(SEMICOLON);
switch (jj_nt.kind) {
case FALSE:
case NEW:
case NULL:
case TRUE:
case INTEGER_LITERAL:
case FLOATING_POINT_LITERAL:
case STRING_LITERAL:
case IDENTIFIER:
case LPAREN:
{
ForUpdate();
break;
}
default:
jj_la1[43] = jj_gen;
;
}
jj_consume_token(RPAREN);
Statement();
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{
if (true) throw (RuntimeException) jjte000;
}
}
if (jjte000 instanceof ParseException) {
{
if (true) throw (ParseException) jjte000;
}
}
{
if (true) throw (Error) jjte000;
}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
jjtn000.jjtSetLastToken(getToken(0));
}
}
}