首页>
外国专利>
INTROSPECTION SUPPORT FOR LOCAL AND ANONYMOUS CLASS
INTROSPECTION SUPPORT FOR LOCAL AND ANONYMOUS CLASS
展开▼
机译:本地和匿名班级的自我支持
展开▼
页面导航
摘要
著录项
相似文献
摘要
PROBLEM TO BE SOLVED: To provide an improved technique for determining a class where a generic type variable is defined.;SOLUTION: A technique provides introspection support for local and anonymous 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. 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 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.;COPYRIGHT: (C)2007,JPO&INPIT
展开▼