示例#1
0
/* Production 81, chapter 3.4, corba 2.3.1 */
  public void string_type() {
 /*@bgen(jjtree) string_type */
  ASTstring_type jjtn000 = new ASTstring_type(this, IDLParserTreeConstants.JJTSTRING_TYPE);
  bool jjtc000 = true;
  jjtree.openNodeScope(jjtn000);
    try {
      jj_consume_token(70);
      switch ((jj_ntk==-1)?jj_ntk_calc():jj_ntk) {
      case 68:
        jj_consume_token(68);
        positive_int_const();
        jj_consume_token(69);
        break;
      default:
        jj_la1[69] = jj_gen;
        ;
        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(ASTstring_type, Object)
  * @param data unsed
  */
 public Object visit(ASTstring_type node, Object data) {
     AttributeExtCollection attrs = new AttributeExtCollection(
         new Attribute[] { new StringValueAttribute(), new WideCharAttribute(false) });
     TypeContainer containter = new TypeContainer(typeof(System.String), attrs);
     return containter;
 }