Ejemplo n.º 1
0
/* Production 95, chapter 3.4, corba 2.3.1 */
  public void param_type_spec() {
 /*@bgen(jjtree) param_type_spec */
  ASTparam_type_spec jjtn000 = new ASTparam_type_spec(this, IDLParserTreeConstants.JJTPARAM_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 70:
        string_type();
        break;
      case 71:
        wide_string_type();
        break;
      case 21:
      case IDLParserConstants.ID:
        scoped_name();
        break;
      default:
        jj_la1[84] = 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);
    }
    }
  }
Ejemplo n.º 2
0
 /**
  * @see parser.IDLParserVisitor#visit(ASTparam_type_spec, Object)
  * @param data the active buildinfo for the current scope
  * @return a TypeContainter for the Type this node represents
  */
 public Object visit(ASTparam_type_spec node, Object data) {
     CheckParameterForBuildInfo(data, node);
     SimpleNode child = (SimpleNode)node.jjtGetChild(0); // get the node representing <base_type_spec> or <string_type> or <widestring_type> or <scoped_name>
     return ResovleTypeSpec(child, (BuildInfo)data);
 }