public final void Type()

in netflix-sel/src/main/java/com/netflix/sel/ast/SelParser.java [325:390]


  public final void Type() throws ParseException {
    /*@bgen(jjtree) Type */
    ASTType jjtn000 = new ASTType(this, JJTTYPE);
    boolean jjtc000 = true;
    jjtree.openNodeScope(jjtn000);
    jjtn000.jjtSetFirstToken(getToken(1));
    try {
      switch (jj_nt.kind) {
        case BOOLEAN:
        case DOUBLE:
        case FLOAT:
        case INT:
        case LONG:
          {
            PrimitiveType();
            break;
          }
        case IDENTIFIER:
          {
            ClassType();
            break;
          }
        default:
          jj_la1[7] = jj_gen;
          jj_consume_token(-1);
          throw new ParseException();
      }
      switch (jj_nt.kind) {
        case LBRACKET:
          {
            jj_consume_token(LBRACKET);
            jj_consume_token(RBRACKET);
            jjtn000.value = Boolean.TRUE; /* an array */
            break;
          }
        default:
          jj_la1[8] = jj_gen;
          ;
      }
    } 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));
      }
    }
  }