Instantiating an interface or abstract class in application code
Abstract
Mechanisms for instantiating an interface or abstract class in application code are provided. An object-oriented programming language is extended such that interfaces and abstract classes can be instantiated in application code without a concrete class specified. Metadata is defined which maps each interface or abstract class instantiation in the application code to a concrete class to be used either by the compiler at build time, or the virtual machine at runtime. Once the appropriate concrete class is determined from the metadata, the class is instantiated with a conventional class loader. The metadata may be provided, for example, as a separate file, such as a markup language file, defined with a virtual machine switch, as annotations in the application code, or the like.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 12 · Forward citations: 15.
Claims (3 — 1 Independent, 2 Dependent)
- Claim 1Independent Claim
A method, in a data processing system, for instantiating an abstract class, comprising: providing mapping metadata for mapping an abstract class to a corresponding concrete class implementing the abstract class; encountering an instantiation statement for the abstract class during processing of application code, wherein the instantiation statement does not specify a concrete class implementing the abstract class; and converting the instantiation statement to specify the concrete class implementing the abstract class based on the mapping metadata.
- Claim 2Depends on #1
The method of claim 1 , wherein the abstract class is an interface class.
- Claim 3Depends on #1
The method of claim 1 , wherein the mapping metadata is provided as part of a mapping metadata file data structure separate from the application code.
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (15 of 15 total)
References Cited — Backward Prior Art (12)
Non-Patent Literature (1)
- U.S. Appl. No. 11/551,892.