Patents
US 7,669,184 B2#10767039 Most CitedExpiredUnited States (USPTO)Utility

Introspection support for local and anonymous classes

10Forward Citations (#10767039 Global)
0.6/yrCitation Velocity (#12586702 Global)
1.70Citation PageRank (#18893124 Global)
2Prior Art Cited
1Claims (1 Indep. · 0 Dep.)
0Drawings / Sheets

Abstract

A technique in accordance with one embodiment of the present invention provides introspection support for anonymous and local classes. As a result of the technique, an enclosing class that defines a generic type variable that is not defined within a local or anonymous class that refers to the generic type variable can be determined. According to one embodiment of the invention, when a compiler determines that a particular class is a local or anonymous class, the compiler emits, into the particular class' binary class file, information that indicates which class encloses the particular class. In response to the invocation of a method (described herein) relative to a reflective proxy that corresponds to an enclosed class, information that identifies an enclosing class that encloses the enclosed class is returned. This is so even if the enclosed class is a local or anonymous class.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 2 · Forward citations: 10.

Claims (1 — 1 Independent, 0 Dependent)

  1. Claim 1Independent Claim

    A machine-readable medium comprising one or more sequences of instructions stored therein, which instructions, when executed by one or more processors, cause the one or more processors to carry out the steps of: in response to an invocation of a first programmatic method of a reflective proxy that corresponds to a first class, identifying a second class that encloses the first class, wherein identifying the second class comprises: obtaining a class index from an enclosing method attribute stored in a binary file created for the first class, wherein the class index specifies a first location in

Technical Overview & Description

Full multi-page specification text is archived at the issuing office. Read complete official specification ↗

Non-Patent Literature (5)

  • Bracha, Gilad, "Generics in the Java Programming Language," [online], Jul. 5, 2004, [retrieved on Jun. 14, 2005]. Retrieved from the Internet: , pp. 1-23.
  • Bracha, Gilad, "Generics in the Java Programming Language," [online], Jul. 5, 2004, [retrieved on Jun. 14, 2005]. Retrieved from the Internet: <http://java.sun.com/j2se/1.5/pdf/generics-tutorial.pdf>, pp. 1-23.
  • Chandra Hundigam, "Understanding the Generic Type in C#," Sep. 2002, The Code Project, pp. 1-4.
  • David Flanagan, "Java In A Nutshell, 5th Edition", Mar. 15, 2005, O'Reilly Media, Inc., sections 2.11, 3.3 and 3.10.
  • Eugster, "Dynamic Proxies for Classes: Towards Type-Safe and Decoupled Remote Object Interaction", 2003, lnforscience, France, pp. 1-18.