Beispiel #1
0
/* Production 73, chapter 3.4, corba 2.3.1 */
  public void switch_type_spec() {
 /*@bgen(jjtree) switch_type_spec */
  ASTswitch_type_spec jjtn000 = new ASTswitch_type_spec(this, IDLParserTreeConstants.JJTSWITCH_TYPE_SPEC);
  bool jjtc000 = true;
  jjtree.openNodeScope(jjtn000);
    try {
      switch ((jj_ntk==-1)?jj_ntk_calc():jj_ntk) {
      case 52:
      case 53:
      case 54:
        integer_type();
        break;
      case 55:
        char_type();
        break;
      case 57:
        boolean_type();
        break;
      case 66:
        enum_type();
        break;
      case 21:
      case IDLParserConstants.ID:
        scoped_name();
        break;
      default:
        jj_la1[63] = 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(ASTswitch_type_spec, Object)
  */
 public Object visit(ASTswitch_type_spec node, Object data) {
     if (!(data is UnionBuildInfo)) {
         throw new InternalCompilerException("invalid parameter in visis ASTswitch_type_spec");
     }
     UnionBuildInfo buildInfo = (UnionBuildInfo)data;
     SimpleNode child = (SimpleNode)node.jjtGetChild(0);
     return ResovleTypeSpec(child, buildInfo);
 }