Beispiel #1
0
/* Production 67, chapter 3.4, corba 2.3.1 */
  public void any_type() {
 /*@bgen(jjtree) any_type */
  ASTany_type jjtn000 = new ASTany_type(this, IDLParserTreeConstants.JJTANY_TYPE);
  bool jjtc000 = true;
  jjtree.openNodeScope(jjtn000);
    try {
      jj_consume_token(59);
    } finally {
    if (jjtc000) {
      jjtree.closeNodeScope(jjtn000, true);
    }
    }
  }
 /**
  * @see parser.IDLParserVisitor#visit(ASTany_type, Object)
  * @param data unused
  * @return a TypeContainer for the any type
  */
 public Object visit(ASTany_type node, Object data) {
     if (!MapAnyToAnyContainer) {
         AttributeExtCollection attrs = new AttributeExtCollection(
             new Attribute[] { new ObjectIdlTypeAttribute(IdlTypeObject.Any) });
         TypeContainer container = new TypeContainer(typeof(System.Object), attrs);
         return container;
     } else {
         TypeContainer container = new TypeContainer(typeof(omg.org.CORBA.Any));
         return container;
     }
 }