public final void AllocationExpression()

in netflix-sel/src/main/java/com/netflix/sel/ast/SelParser.java [1572:1670]


  public final void AllocationExpression() throws ParseException {
    /*@bgen(jjtree) AllocationExpression */
    ASTAllocationExpression jjtn000 = new ASTAllocationExpression(this, JJTALLOCATIONEXPRESSION);
    boolean jjtc000 = true;
    jjtree.openNodeScope(jjtn000);
    jjtn000.jjtSetFirstToken(getToken(1));
    try {
      if (jj_2_5(2)) {
        jj_consume_token(NEW);
        PrimitiveType();
        ArrayDimsAndInits();
      } else {
        switch (jj_nt.kind) {
          case NEW:
            {
              jj_consume_token(NEW);
              ClassType();
              switch (jj_nt.kind) {
                case LBRACKET:
                  {
                    ArrayDimsAndInits();
                    break;
                  }
                case LPAREN:
                  {
                    ASTArgs jjtn001 = new ASTArgs(this, JJTARGS);
                    boolean jjtc001 = true;
                    jjtree.openNodeScope(jjtn001);
                    jjtn001.jjtSetFirstToken(getToken(1));
                    try {
                      Arguments();
                    } catch (Throwable jjte001) {
                      if (jjtc001) {
                        jjtree.clearNodeScope(jjtn001);
                        jjtc001 = false;
                      } else {
                        jjtree.popNode();
                      }
                      if (jjte001 instanceof RuntimeException) {
                        {
                          if (true) throw (RuntimeException) jjte001;
                        }
                      }
                      if (jjte001 instanceof ParseException) {
                        {
                          if (true) throw (ParseException) jjte001;
                        }
                      }
                      {
                        if (true) throw (Error) jjte001;
                      }
                    } finally {
                      if (jjtc001) {
                        jjtree.closeNodeScope(jjtn001, true);
                        jjtn001.jjtSetLastToken(getToken(0));
                      }
                    }
                    break;
                  }
                default:
                  jj_la1[32] = jj_gen;
                  jj_consume_token(-1);
                  throw new ParseException();
              }
              break;
            }
          default:
            jj_la1[33] = 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));
      }
    }
  }