-
Enhancement
-
Resolution: Duplicate
-
P4
-
6
-
generic
-
generic
The api mirror API which models classes, http://java.sun.com/j2se/1.5.0/docs/guide/apt/mirror/com/sun/mirror/declaration/ClassDeclaration.html, is not able to model anonymous and local classes. This is adaquate for the purposes of apt since only visibly declarable classes will be returned; i.e. only class types which can appear in a method signature. However, if the follow-on API is to be used in broader contexts, then at least a small amount of additional functionality will be needed; cf. the new core reflection functionality added in Tiger:
Class.getEnclosingClass
Class.getEnclosingMethod
Class.getEnclosingConstructor
Class.getSimpleName
Class.isAnonymousClass
Class.isLocalClass
Class.isMemberClass
###@###.### 2005-1-25 01:13:24 GMT
Class.getEnclosingClass
Class.getEnclosingMethod
Class.getEnclosingConstructor
Class.getSimpleName
Class.isAnonymousClass
Class.isLocalClass
Class.isMemberClass
###@###.### 2005-1-25 01:13:24 GMT