Searched refs:getEnclosingClass (Results 1 – 5 of 5) sorted by relevance
/libcore/luni/src/test/java/libcore/java/lang/reflect/ |
D | AnnotationsTest.java | 102 assertNull(AnnotationsTest.class.getEnclosingClass()); in testGetEnclosingClass() 103 assertEquals(AnnotationsTest.class, Foo.class.getEnclosingClass()); in testGetEnclosingClass() 104 assertEquals(AnnotationsTest.class, HasMemberClassesInterface.class.getEnclosingClass()); in testGetEnclosingClass() 106 HasMemberClassesInterface.D.class.getEnclosingClass()); in testGetEnclosingClass() 107 assertEquals(AnnotationsTest.class, Foo.class.getEnclosingClass()); in testGetEnclosingClass() 120 assertEquals(AnnotationsTest.class, C.class.getEnclosingClass()); in testGetEnclosingClassIsTransitiveForClassesDefinedInAMethod() 138 assertEquals(AnnotationsTest.class, staticAnonymous.getClass().getEnclosingClass()); in testStaticFieldAnonymousClass() 158 assertEquals(Foo.class, foo.c.getEnclosingClass()); in testClassEnclosedByConstructor() 168 assertEquals(Foo.class, foo.c.getEnclosingClass()); in testClassEnclosedByMethod()
|
/libcore/luni/src/main/java/libcore/reflect/ |
D | TypeVariableImpl.java | 91 return cl.getEnclosingClass(); in nextLayer()
|
D | AnnotationAccess.java | 374 public static Class<?> getEnclosingClass(Class<?> c) { in getEnclosingClass() method in AnnotationAccess
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | OldClassTest.java | 375 Class clazz = OldClassTest.class.getEnclosingClass(); in test_getEnclosingClass() 378 assertEquals(getClass(), Cls1.class.getEnclosingClass()); in test_getEnclosingClass() 379 assertEquals(getClass(), Intf1.class.getEnclosingClass()); in test_getEnclosingClass() 380 assertEquals(getClass(), Cls4.class.getEnclosingClass()); in test_getEnclosingClass()
|
/libcore/libart/src/main/java/java/lang/ |
D | Class.java | 995 return AnnotationAccess.getEnclosingClass(this); in getDeclaringClass() 1004 public Class<?> getEnclosingClass() { in getEnclosingClass() method in Class 1013 return AnnotationAccess.getEnclosingClass(this); in getEnclosingClass()
|