Home
last modified time | relevance | path

Searched refs:getEnclosingClass (Results 1 – 5 of 5) sorted by relevance

/libcore/luni/src/test/java/libcore/java/lang/reflect/
DAnnotationsTest.java102 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/
DTypeVariableImpl.java91 return cl.getEnclosingClass(); in nextLayer()
DAnnotationAccess.java374 public static Class<?> getEnclosingClass(Class<?> c) { in getEnclosingClass() method in AnnotationAccess
/libcore/luni/src/test/java/libcore/java/lang/
DOldClassTest.java375 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/
DClass.java995 return AnnotationAccess.getEnclosingClass(this); in getDeclaringClass()
1004 public Class<?> getEnclosingClass() { in getEnclosingClass() method in Class
1013 return AnnotationAccess.getEnclosingClass(this); in getEnclosingClass()