Searched refs:getEnclosingClass (Results 1 – 8 of 8) sorted by relevance
/libcore/luni/src/test/java/libcore/java/lang/reflect/ |
D | ReflectionTest.java | 441 assertNull(ReflectionTest.class.getEnclosingClass()); in testGetEnclosingClass() 442 assertEquals(ReflectionTest.class, Foo.class.getEnclosingClass()); in testGetEnclosingClass() 443 assertEquals(ReflectionTest.class, HasMemberClassesInterface.class.getEnclosingClass()); in testGetEnclosingClass() 445 HasMemberClassesInterface.D.class.getEnclosingClass()); in testGetEnclosingClass() 446 assertEquals(ReflectionTest.class, Foo.class.getEnclosingClass()); in testGetEnclosingClass() 459 assertEquals(ReflectionTest.class, C.class.getEnclosingClass()); in testGetEnclosingClassIsTransitiveForClassesDefinedInAMethod() 479 assertEquals(ReflectionTest.class, staticAnonymous.getClass().getEnclosingClass()); in testStaticFieldAnonymousClass() 499 assertEquals(Foo.class, foo.c.getEnclosingClass()); in testClassEnclosedByConstructor() 509 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/ojluni/src/main/java/sun/invoke/util/ |
D | VerifyAccess.java | 335 for (Class<?> enc = c; (enc = enc.getEnclosingClass()) != null; ) in getOutermostEnclosingClass()
|
/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/annotations/mmodule/java/lang/ |
D | Class.annotated.java | 104 public native java.lang.Class<?> getEnclosingClass(); in getEnclosingClass() method in Class
|
/libcore/ojluni/annotations/sdk/nullability/java/lang/ |
D | Class.annotated.java | 102 @libcore.util.Nullable public native java.lang.Class<?> getEnclosingClass(); in getEnclosingClass() method in Class
|
/libcore/ojluni/annotations/hiddenapi/java/lang/ |
D | Class.java | 171 public native java.lang.Class<?> getEnclosingClass(); in getEnclosingClass() method in Class
|