Esempio n. 1
0
/* Production 45, chapter 3.4, corba 2.3.1 */
  public void simple_type_spec() {
 /*@bgen(jjtree) simple_type_spec */
  ASTsimple_type_spec jjtn000 = new ASTsimple_type_spec(this, IDLParserTreeConstants.JJTSIMPLE_TYPE_SPEC);
  bool jjtc000 = true;
  jjtree.openNodeScope(jjtn000);
    try {
      switch ((jj_ntk==-1)?jj_ntk_calc():jj_ntk) {
      case 50:
      case 51:
      case 52:
      case 53:
      case 54:
      case 55:
      case 56:
      case 57:
      case 58:
      case 59:
      case 60:
      case 84:
        base_type_spec();
        break;
      case 67:
      case 70:
      case 71:
      case 83:
        template_type_spec();
        break;
      case 21:
      case IDLParserConstants.ID:
        scoped_name();
        break;
      default:
        jj_la1[52] = 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(ASTsimple_type_spec, Object)
  * @param data the buildinfo instance
  * @return a TypeContainer containing the type represented by this node
  */
 public Object visit(ASTsimple_type_spec node, Object data) {
     CheckParameterForBuildInfo(data, node);
     SimpleNode child = (SimpleNode)node.jjtGetChild(0);
     return ResovleTypeSpec(child, (BuildInfo) data);
 }