public Description describe() { String defined_in_id = "IR"; if (defined_in instanceof ContainedOperations) defined_in_id = ((ContainedOperations) defined_in).id(); ExceptionDescription[] exds; exds = new ExceptionDescription[exceptions.length]; for (int i = 0; i < exceptions.length; ++i) { Description d = exceptions[i].describe(); exds[i] = ExceptionDescriptionHelper.extract(d.value); } OperationDescription od; od = new OperationDescription(name, id, defined_in_id, version, typeCode, mode(), contexts(), params(), exds); Any any = getORB().create_any(); OperationDescriptionHelper.insert(any, od); return new Description(DefinitionKind.dk_Operation, any); }
public void allDone() throws IRConstructionException { // Get my return type definition: It should have been created now. type_def = IDLTypeImpl.getIDLType(typeCode, repository); // resolve parameter type definitions for (int i = 0; i < params.length; ++i) { LocalIDLType lit = IDLTypeImpl.getIDLType(params[i].type, repository); if (lit == null) throw new RuntimeException(); params[i].type_def = IDLTypeHelper.narrow(lit.getReference()); if (params[i].type_def == null) throw new RuntimeException(); } getReference(); }
public IRObject getReference() { if (ref == null) { ref = org.omg.CORBA.OperationDefHelper.narrow( servantToReference(new OperationDefPOATie(this))); } return ref; }
oDef = new OperationDefImpl(oid, oName, "1.0", container, typeCode, params, exceptions, impl); container.add(oName, oDef);
oDef = new OperationDefImpl(oid, oName, "1.0", container, typeCode, params, exceptions, impl); container.add(oName, oDef);
public Description describe() { String defined_in_id = "IR"; if (defined_in instanceof ContainedOperations) defined_in_id = ((ContainedOperations) defined_in).id(); ExceptionDescription[] exds; exds = new ExceptionDescription[exceptions.length]; for (int i = 0; i < exceptions.length; ++i) { Description d = exceptions[i].describe(); exds[i] = ExceptionDescriptionHelper.extract(d.value); } OperationDescription od; od = new OperationDescription(name, id, defined_in_id, version, typeCode, mode(), contexts(), params(), exds); Any any = getORB().create_any(); OperationDescriptionHelper.insert(any, od); return new Description(DefinitionKind.dk_Operation, any); }
public IRObject getReference() { if (ref == null) { ref = org.omg.CORBA.OperationDefHelper.narrow( servantToReference(new OperationDefPOATie(this))); } return ref; }
public void allDone() throws IRConstructionException { // Get my return type definition: It should have been created now. type_def = IDLTypeImpl.getIDLType(typeCode, repository); // resolve parameter type definitions for (int i = 0; i < params.length; ++i) { LocalIDLType lit = IDLTypeImpl.getIDLType(params[i].type, repository); if (lit == null) throw new RuntimeException(); params[i].type_def = IDLTypeHelper.narrow(lit.getReference()); if (params[i].type_def == null) throw new RuntimeException(); } getReference(); }
oDef = new OperationDefImpl(oid, oName, "1.0", container, typeCode, params, exceptions, impl); container.add(oName, oDef);
public Description describe() { String defined_in_id = "IR"; if (defined_in instanceof ContainedOperations) defined_in_id = ((ContainedOperations) defined_in).id(); ExceptionDescription[] exds; exds = new ExceptionDescription[exceptions.length]; for (int i = 0; i < exceptions.length; ++i) { Description d = exceptions[i].describe(); exds[i] = ExceptionDescriptionHelper.extract(d.value); } OperationDescription od; od = new OperationDescription(name, id, defined_in_id, version, typeCode, mode(), contexts(), params(), exds); Any any = getORB().create_any(); OperationDescriptionHelper.insert(any, od); return new Description(DefinitionKind.dk_Operation, any); }
public IRObject getReference() { if (ref == null) { ref = org.omg.CORBA.OperationDefHelper.narrow( servantToReference(new OperationDefPOATie(this))); } return ref; }
public void allDone() throws IRConstructionException { // Get my return type definition: It should have been created now. type_def = IDLTypeImpl.getIDLType(typeCode, repository); // resolve parameter type definitions for (int i = 0; i < params.length; ++i) { LocalIDLType lit = IDLTypeImpl.getIDLType(params[i].type, repository); if (lit == null) throw new RuntimeException(); params[i].type_def = IDLTypeHelper.narrow(lit.getReference()); if (params[i].type_def == null) throw new RuntimeException(); } getReference(); }