Пример #1
0
/* Production 44, chapter 3.4, corba 2.3.1 */
  public void type_spec() {
 /*@bgen(jjtree) type_spec */
  ASTtype_spec jjtn000 = new ASTtype_spec(this, IDLParserTreeConstants.JJTTYPE_SPEC);
  bool jjtc000 = true;
  jjtree.openNodeScope(jjtn000);
    try {
      switch ((jj_ntk==-1)?jj_ntk_calc():jj_ntk) {
      case 21:
      case 50:
      case 51:
      case 52:
      case 53:
      case 54:
      case 55:
      case 56:
      case 57:
      case 58:
      case 59:
      case 60:
      case 67:
      case 70:
      case 71:
      case 83:
      case 84:
      case IDLParserConstants.ID:
        simple_type_spec();
        break;
      case 61:
      case 62:
      case 66:
        constr_type_spec();
        break;
      default:
        jj_la1[51] = 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_spec, Object)
  * @param data expected is an instance of BuildInfo
  * if ((BuildInfo)data).getContainerType() is null, than an independant type-decl is created, else
  * the type delcaration is added to the Type in creation
  */
 public Object visit(ASTtype_spec node, Object data) {
     Node child = node.jjtGetChild(0);
     return child.jjtAccept(this, data); // handle <simple_type_spec> or <constr_type_spec>
 }