Compiling source code using generic classes
Abstract
A method includes receiving a portion of JAVA™ language software having a declaration of an instance of a generic class, parsing the declaration into a token corresponding to the generic class, and generating an intermediate language code block corresponding to the parsed declaration. The intermediate language code block is executable by a runtime engine. A system for compiling includes a parser receiving JAVA™ language source code having an instruction referencing a generic class and specifying a type of the generic class, and a code generator generating intermediate language code representing the source code.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 11 · Forward citations: 15.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A computer-implemented method of generating common intermediate language code for use in a framework, the method comprising: Receiving at a computer a portion of JAVA™ language source code referencing, through a generic class syntax, one or more generic classes unspecified in a formal JAVA™ language specification, wherein: each of the one or more generic classes refers to a first class configured to operate uniformly on instances of a plurality of types associated with the first class; the plurality of types are defined in the first class as an unconstrained type supporting a generic class typ
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 (11)
Non-Patent Literature (5)
- "Common Intermediate Language", Jan. 9, 2007, AT <<http://en.wikipedia.org/wiki/Common-Intermediate-Language>>, Wikipedia-Definition of Common Intermediate Language (CIL), pp. 1-4.
- Allen et al., The Case for run-time types in generic Java, published : 2002, ACM International Conference Proceeding Series: vol. 25, pp. 19-23.
- Attardi, et al., "CodeBricks: Code Fragments as Building Blocks" Jan. 3, 2007, ACM, Jun. 2003, pp. 66-74.
- Bracha, et al., "GJ: Extending the JAVA Programming Language with type Parameters", pp. 1-23, Mar. 1998.
- Bracha, Gilad; Marx, Stefan; Odersky, Martin; "The Java Community Process(SM) Program-JSRs Java Specification Requests"; 5 pages; http://web1/jcp.org/en/jsr/detail?id=14&showPrint, printed: Sep. 8,2003.