Searched refs:getEnclosingClass (Results 1 - 6 of 6) sorted by relevance

/libcore/luni/src/main/java/libcore/reflect/
H A DTypeVariableImpl.java92 return cl.getEnclosingClass();
/libcore/luni/src/test/java/libcore/java/lang/reflect/
H A DReflectionTest.java441 assertNull(ReflectionTest.class.getEnclosingClass());
442 assertEquals(ReflectionTest.class, Foo.class.getEnclosingClass());
443 assertEquals(ReflectionTest.class, HasMemberClassesInterface.class.getEnclosingClass());
445 HasMemberClassesInterface.D.class.getEnclosingClass());
446 assertEquals(ReflectionTest.class, Foo.class.getEnclosingClass());
459 assertEquals(ReflectionTest.class, C.class.getEnclosingClass());
479 assertEquals(ReflectionTest.class, staticAnonymous.getClass().getEnclosingClass());
499 assertEquals(Foo.class, foo.c.getEnclosingClass());
509 assertEquals(Foo.class, foo.c.getEnclosingClass());
/libcore/benchmarks/src/benchmarks/regression/
H A DAnnotatedElementBenchmark.java166 anonymousClass.getClass().getEnclosingClass();
/libcore/luni/src/test/java/libcore/java/lang/
H A DOldClassTest.java370 Class clazz = OldClassTest.class.getEnclosingClass();
373 assertEquals(getClass(), Cls1.class.getEnclosingClass());
374 assertEquals(getClass(), Intf1.class.getEnclosingClass());
375 assertEquals(getClass(), Cls4.class.getEnclosingClass());
/libcore/ojluni/src/main/java/sun/invoke/util/
H A DVerifyAccess.java266 for (Class<?> enc = c; (enc = enc.getEnclosingClass()) != null; )
/libcore/ojluni/src/main/java/java/lang/
H A DClass.java1197 public native Class<?> getEnclosingClass(); method in class:Class
1283 Class<?> enclosingClass = getEnclosingClass();

Completed in 121 milliseconds