Generation of delegating implementation for IDL interfaces which use inheritance
AssigneeSun Microsystems, Inc.
InventorsKarel Gardas, Tomas Zezula, Dusan Balek
Life of this patent
Estimating the term…
Abstract
A method of generating an implementation for an interface definition language interface (IDL), includes identifying parents for an interface; computing a set of directly implemented methods for parent interfaces; generating an implementation of the interface with concrete parent interfaces to generate a plurality of delegation fields; generating initialization and setting method for the delegation fields; and generating indirectly implemented methods with a body that delegates functionality to one of the delegate fields.
Claims2
A method of generating an implementation for an interface definition language interface (IDL), comprising:
- identifying parents for an interface;
- computing a set of directly implemented methods for all parent interfaces;
- generating an implementation of the interface with concrete parent interfaces to generate a plurality of delegation fields;
- generating initialization and setting methods for the plurality of delegation fields;
- generating indirectly implemented methods with a body that delegates functionality to one of the delegation fields;
- generating inherited methods and required fields to guarded blocks;
- generating delegation source code for an abstract interface;
- generating a full body implementation, wherein the delegation source code is generated, a delegation object attribute is created, and an initialize inheritance tree method is created;
- and
- supporting the generation of the delegation source code for implementation of the IDL interface that extends all the parent interfaces using an implementation generator;
- wherein the specifics of generation of the indirectly implemented methods depends on the type of delegation chosen;
- wherein the IDL interface is written using an editor component;
- and
- wherein the implementation generator supports a none delegation setting, a static delegation setting, and a virtual delegation setting.
A computer system adapted to generate an implementation for an interface definition language interface (IDL), comprising:
- a processor;
- a memory element, and
- software instructions for enabling the computer under control of the processor, to perform:
- identifying parents for an interface;
- computing a set of directly implemented methods for all parent interfaces;
- generating an implementation of the interface with concrete parent interfaces to generate a plurality of delegation fields;
- generating initialization and setting method for the delegation fields;
- generating indirectly implemented methods with a body that delegates functionality to one of the delegation fields;
- generating inherited methods and required fields to guarded blocks;
- generating delegation source code for an abstract interface;
- generating a full body implementation, wherein the delegation source code is generated, a delegation object attribute is created, and an initialize inheritance tree method is created;
- and
- supporting the generation of full delegation source code for implementation of the IDL interface that extends the parents interface using an implementation generator;
- wherein the specifics of generation of indirectly implemented methods depends on the type of delegation chosen;
- wherein the IDL interface is written using an editor component;
- and
- wherein the implementation generator supports a none delegation setting, a static delegation setting, and a virtual delegation setting.
Dependencies are inferred from the claim text.