Example #1
0
/* Production 82, chapter 3.4, corba 2.3.1 */
  public void wide_string_type() {
 /*@bgen(jjtree) wide_string_type */
  ASTwide_string_type jjtn000 = new ASTwide_string_type(this, IDLParserTreeConstants.JJTWIDE_STRING_TYPE);
  bool jjtc000 = true;
  jjtree.openNodeScope(jjtn000);
    try {
      jj_consume_token(71);
      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[70] = 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(ASTwide_string_type, Object)
  * @param data unsed
  * @return a TypeContainer for the wideString-Type
  */
 public Object visit(ASTwide_string_type node, Object data) {
     AttributeExtCollection attrs = new AttributeExtCollection(
         new Attribute[] { new StringValueAttribute(), new WideCharAttribute(true) });
     TypeContainer containter = new TypeContainer(typeof(System.String), attrs);
     return containter;
 }