Home
last modified time | relevance | path

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

/libcore/luni/src/test/java/libcore/java/lang/reflect/
DReflectionTest.java441 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/
DTypeVariableImpl.java92 return cl.getEnclosingClass(); in nextLayer()
/libcore/ojluni/src/main/java/sun/invoke/util/
DVerifyAccess.java335 for (Class<?> enc = c; (enc = enc.getEnclosingClass()) != null; ) in getOutermostEnclosingClass()
/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/annotations/mmodule/java/lang/
DClass.annotated.java104 public native java.lang.Class<?> getEnclosingClass(); in getEnclosingClass() method in Class
/libcore/ojluni/annotations/sdk/nullability/java/lang/
DClass.annotated.java102 @libcore.util.Nullable public native java.lang.Class<?> getEnclosingClass(); in getEnclosingClass() method in Class
/libcore/ojluni/annotations/hiddenapi/java/lang/
DClass.java171 public native java.lang.Class<?> getEnclosingClass(); in getEnclosingClass() method in Class