public final void Statement()

in netflix-sel/src/main/java/com/netflix/sel/ast/SelParser.java [1736:1832]


  public final void Statement() throws ParseException {
    /*@bgen(jjtree) Statement */
    ASTStatement jjtn000 = new ASTStatement(this, JJTSTATEMENT);
    boolean jjtc000 = true;
    jjtree.openNodeScope(jjtn000);
    jjtn000.jjtSetFirstToken(getToken(1));
    try {
      switch (jj_nt.kind) {
        case LBRACE:
          {
            Block();
            break;
          }
        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();
            jj_consume_token(SEMICOLON);
            break;
          }
        case IF:
          {
            IfStatement();
            break;
          }
        case WHILE:
          {
            WhileStatement();
            break;
          }
        case FOR:
          {
            ForStatement();
            break;
          }
        case BREAK:
          {
            BreakStatement();
            break;
          }
        case CONTINUE:
          {
            ContinueStatement();
            break;
          }
        case RETURN:
          {
            ReturnStatement();
            break;
          }
        case THROW:
          {
            ThrowStatement();
            break;
          }
        default:
          jj_la1[35] = jj_gen;
          jj_consume_token(-1);
          throw new ParseException();
      }
    } 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));
      }
    }
  }