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.java107 assertNull(AnnotationsTest.class.getEnclosingClass()); in testGetEnclosingClass()
108 assertEquals(AnnotationsTest.class, Foo.class.getEnclosingClass()); in testGetEnclosingClass()
109 assertEquals(AnnotationsTest.class, HasMemberClassesInterface.class.getEnclosingClass()); in testGetEnclosingClass()
111 HasMemberClassesInterface.D.class.getEnclosingClass()); in testGetEnclosingClass()
112 assertEquals(AnnotationsTest.class, Foo.class.getEnclosingClass()); in testGetEnclosingClass()
125 assertEquals(AnnotationsTest.class, C.class.getEnclosingClass()); in testGetEnclosingClassIsTransitiveForClassesDefinedInAMethod()
143 assertEquals(AnnotationsTest.class, staticAnonymous.getClass().getEnclosingClass()); in testStaticFieldAnonymousClass()
163 assertEquals(Foo.class, foo.c.getEnclosingClass()); in testClassEnclosedByConstructor()
173 assertEquals(Foo.class, foo.c.getEnclosingClass()); in testClassEnclosedByMethod()
/libcore/luni/src/main/java/libcore/reflect/
DTypeVariableImpl.java92 return cl.getEnclosingClass(); in nextLayer()
/libcore/luni/src/test/java/libcore/java/lang/
DOldClassTest.java370 Class clazz = OldClassTest.class.getEnclosingClass(); in test_getEnclosingClass()
373 assertEquals(getClass(), Cls1.class.getEnclosingClass()); in test_getEnclosingClass()
374 assertEquals(getClass(), Intf1.class.getEnclosingClass()); in test_getEnclosingClass()
375 assertEquals(getClass(), Cls4.class.getEnclosingClass()); in test_getEnclosingClass()
/libcore/benchmarks/src/benchmarks/regression/
DAnnotatedElementBenchmark.java166 anonymousClass.getClass().getEnclosingClass(); in timeGetEnclosingClass()
/libcore/ojluni/src/main/java/java/lang/
DClass.java1141 public native Class<?> getEnclosingClass(); in getEnclosingClass() method in Class
1201 Class<?> enclosingClass = getEnclosingClass(); in getCanonicalName()