예제 #1
0
/* Production 90, chapter 3.4, corba 2.3.1 */
  public void parameter_dcls() {
 /*@bgen(jjtree) parameter_dcls */
  ASTparameter_dcls jjtn000 = new ASTparameter_dcls(this, IDLParserTreeConstants.JJTPARAMETER_DCLS);
  bool jjtc000 = true;
  jjtree.openNodeScope(jjtn000);
    try {
      jj_consume_token(29);
      switch ((jj_ntk==-1)?jj_ntk_calc():jj_ntk) {
      case 31:
      case 79:
      case 80:
        param_dcl();
        while (true) {
          switch ((jj_ntk==-1)?jj_ntk_calc():jj_ntk) {
          case 20:
            ;
            break;
          default:
            jj_la1[79] = jj_gen;
            goto label_25;
            break;
          }
          jj_consume_token(20);
          param_dcl();
        }
        label_25: ;
        
        break;
      default:
        jj_la1[80] = jj_gen;
        ;
        break;
      }
      jj_consume_token(30);
    } catch (Exception jjte000) {
    if (jjtc000) {
      jjtree.clearNodeScope(jjtn000);
      jjtc000 = false;
    } else {
      jjtree.popNode();
    }
  {if (true) throw ;}
    } finally {
    if (jjtc000) {
      jjtree.closeNodeScope(jjtn000, true);
    }
    }
  }
 /**
  * @see parser.IDLParserVisitor#visit(ASTparameter_dcls, Object)
  * @param data the active buildinfo for the current scope
  * @return an array of ParameterSpec instances, describing the paramters
  */
 public Object visit(ASTparameter_dcls node, Object data) {
     ParameterSpec[] parameters = new ParameterSpec[node.jjtGetNumChildren()];
     for (int i = 0; i < node.jjtGetNumChildren(); i++) {
         parameters[i] = (ParameterSpec) node.jjtGetChild(i).jjtAccept(this, data);
     }
     return parameters;
 }