Searched refs:getEnclosingClass (Results 1 – 5 of 5) sorted by relevance
/libcore/luni/src/test/java/libcore/java/lang/reflect/ |
D | AnnotationsTest.java | 107 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/ |
D | TypeVariableImpl.java | 92 return cl.getEnclosingClass(); in nextLayer()
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | OldClassTest.java | 370 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/ |
D | AnnotatedElementBenchmark.java | 166 anonymousClass.getClass().getEnclosingClass(); in timeGetEnclosingClass()
|
/libcore/ojluni/src/main/java/java/lang/ |
D | Class.java | 1141 public native Class<?> getEnclosingClass(); in getEnclosingClass() method in Class 1201 Class<?> enclosingClass = getEnclosingClass(); in getCanonicalName()
|