예제 #1
0
/* Production 42: chapter 3.4 corba 2.3.1 */
  public void type_dcl() {
 /*@bgen(jjtree) type_dcl */
  ASTtype_dcl jjtn000 = new ASTtype_dcl(this, IDLParserTreeConstants.JJTTYPE_DCL);
  bool jjtc000 = true;
  jjtree.openNodeScope(jjtn000);
    try {
      switch ((jj_ntk==-1)?jj_ntk_calc():jj_ntk) {
      case 48:
        jj_consume_token(48);
        type_declarator();
        break;
      case 61:
        struct_type();
        break;
      case 62:
        union_type();
        break;
      case 66:
        enum_type();
        break;
      case 49:
        jj_consume_token(49);
        simple_declarator();
        break;
      default:
        jj_la1[50] = jj_gen;
        jj_consume_token(-1);
        throw new ParseException();
        break;
      }
    } 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(ASTtype_dcl, Object)
  * @param data the current buildinfo
  */
 public Object visit(ASTtype_dcl node, Object data) {
     Node childNode = node.jjtGetChild(0); // let the childnode declare the type
     childNode.jjtAccept(this, data);
     return null;
 }