/libcore/luni/src/test/java/libcore/java/lang/reflect/ |
D | MethodOverridesTest.java | 42 assertEquals(StringBuilder.class, method.getDeclaringClass()); in testDeclaringClass() 66 assertEquals(Sub.class, Sub.class.getMethod("unchanged").getDeclaringClass()); in testGetDeclaringClassReturnsOverridingClass() 67 assertEquals(Sub.class, Sub.class.getDeclaredMethod("unchanged").getDeclaringClass()); in testGetDeclaringClassReturnsOverridingClass() 74 assertEquals(Sub.class, Sub.class.getMethod("thrower").getDeclaringClass()); in testGetMethodsDoesNotIncludeExceptionChanges() 83 assertEquals(Sub.class, method.getDeclaringClass()); in testGetMethodsIncludesSyntheticMethods() 93 assertEquals(Sub.class, method.getDeclaringClass()); in testGetDeclaredMethodsIncludesSyntheticMethods() 102 assertEquals(Sub.class, method.getDeclaringClass()); in testSubclassChangesVisibility() 110 assertEquals(Sub.class, method.getDeclaringClass()); in testSubclassChangesVisibility() 119 assertEquals(PublicSub.class, method.getDeclaringClass()); in testMoreVisibleSubclassChangesVisibility() 127 assertEquals(PublicSub.class, method.getDeclaringClass()); in testMoreVisibleSubclassChangesVisibility()
|
D | MethodTest.java | 94 assertEquals(InterfaceA.class, Sub.class.getMethod("a").getDeclaringClass()); in testGetMethodWithPrivateMethodAndInterfaceMethod() 98 assertEquals(InterfaceA.class, ImplementsC.class.getMethod("a").getDeclaringClass()); in testGetMethodReturnsIndirectlyImplementedInterface() 99 assertEquals(InterfaceA.class, ExtendsImplementsC.class.getMethod("a").getDeclaringClass()); in testGetMethodReturnsIndirectlyImplementedInterface() 104 ImplementsC.class.getDeclaredMethod("a").getDeclaringClass(); in testGetDeclaredMethodReturnsIndirectlyImplementedInterface() 109 ExtendsImplementsC.class.getDeclaredMethod("a").getDeclaringClass(); in testGetDeclaredMethodReturnsIndirectlyImplementedInterface() 176 assertEquals(anonymous.getClass(), method.getDeclaringClass()); in testImplementedInterfaceMethodOfAnonymousClass() 185 assertEquals(anonymous.getClass(), method.getDeclaringClass()); in testPublicMethodOfAnonymousClass() 206 assertEquals(anonymous.getClass(), method.getDeclaringClass()); in testGetDeclaredMethodReturnsPrivateMethodOfAnonymousClass() 360 assertEquals(InterfaceWithStatic.class, method.getDeclaringClass()); in testStaticInterfaceMethod_getMethod() 367 assertEquals(InterfaceWithStatic.class, declaredMethod.getDeclaringClass()); in testStaticInterfaceMethod_getDeclaredMethod() [all …]
|
D | ReflectionTest.java | 222 assertEquals(C.class, field.getDeclaringClass()); in testGetFieldIsRecursive() 261 assertEquals(DefinesMember.class, field.getDeclaringClass()); in testGetFieldViaExtendsThenImplements() 266 assertEquals(DefinesMember.class, field.getDeclaringClass()); in testGetFieldViaImplementsThenExtends() 281 assertEquals(DefinesMember.class, method.getDeclaringClass()); in testGetMethodViaExtendsThenImplements() 286 assertEquals(DefinesMember.class, method.getDeclaringClass()); in testGetMethodViaImplementsThenExtends() 450 assertNull(ReflectionTest.class.getDeclaringClass()); in testGetDeclaringClass() 451 assertEquals(ReflectionTest.class, Foo.class.getDeclaringClass()); in testGetDeclaringClass() 452 assertEquals(ReflectionTest.class, HasMemberClassesInterface.class.getDeclaringClass()); in testGetDeclaringClass() 454 HasMemberClassesInterface.D.class.getDeclaringClass()); in testGetDeclaringClass() 464 assertEquals(null, C.class.getDeclaringClass()); in testGetDeclaringClassIsNotTransitiveForClassesDefinedInAMethod() [all …]
|
/libcore/ojluni/src/main/java/java/lang/reflect/ |
D | Constructor.java | 89 public Class<T> getDeclaringClass() { in getDeclaringClass() method in Constructor 100 return getDeclaringClass().getName(); in getName() 189 if (getDeclaringClass() == other.getDeclaringClass()) { in equals() 203 return getDeclaringClass().getName().hashCode(); in hashCode() 234 sb.append(getDeclaringClass().getTypeName()); in specificToStringHeader()
|
D | Method.java | 97 public Class<?> getDeclaringClass() { in getDeclaringClass() method in Method 236 if ((getDeclaringClass() == other.getDeclaringClass()) in equals() 253 return getDeclaringClass().getName().hashCode() ^ getName().hashCode(); in hashCode() 293 sb.append(getDeclaringClass().getTypeName()).append('.'); in specificToStringHeader() 345 sb.append(getDeclaringClass().getTypeName()).append('.'); in specificToGenericStringHeader()
|
D | Field.java | 72 public Class<?> getDeclaringClass() { in getDeclaringClass() method in Field 201 return (getDeclaringClass() == other.getDeclaringClass()) in equals() 214 return getDeclaringClass().getName().hashCode() ^ getName().hashCode(); in hashCode() 242 + getDeclaringClass().getTypeName() + "." in toString() 271 + getDeclaringClass().getTypeName() + "." in toGenericString()
|
D | AccessibleObject.java | 126 Class<?> clazz = c.getDeclaringClass(); in setAccessible0() 127 if (c.getDeclaringClass() == Class.class) { in setAccessible0()
|
D | Member.java | 61 public Class<?> getDeclaringClass(); in getDeclaringClass() method
|
D | Executable.java | 184 public abstract Class<?> getDeclaringClass(); in getDeclaringClass() method in Executable 694 new GenericSignatureParser(this.getDeclaringClass().getClassLoader()); in getMethodOrConstructorGenericInfoInternal()
|
D | Proxy.java | 273 Class<?> aClass = a.getDeclaringClass(); 274 Class<?> bClass = b.getDeclaringClass();
|
/libcore/ojluni/src/main/java/java/lang/invoke/ |
D | MethodHandleImpl.java | 77 if (member.getDeclaringClass().isInterface()) { in getReferenceKind() 110 public Class<?> getDeclaringClass() { in getDeclaringClass() method in MethodHandleImpl.HandleInfo 111 return member.getDeclaringClass(); in getDeclaringClass() 157 lookup.checkAccess(member.getDeclaringClass(), member.getDeclaringClass(), in reflectAs()
|
D | MethodHandles.java | 787 checkAccess(refc, method.getDeclaringClass(), modifiers, method.getName()); in findStatic() 911 checkAccess(refc, method.getDeclaringClass(), method.getModifiers(), method.getName()); in findVirtual() 971 "No constructor for " + constructor.getDeclaringClass() + " matching " + type); in findConstructor() 973 checkAccess(refc, constructor.getDeclaringClass(), constructor.getModifiers(), in findConstructor() 980 Class<?> refc = constructor.getDeclaringClass(); in createMethodHandleForConstructor() 1157 if (!method.getDeclaringClass().isAssignableFrom(specialCaller)) { in findSpecial() 1203 checkAccess(refc, field.getDeclaringClass(), field.getModifiers(), field.getName()); in findAccessor() 1402 checkAccess(m.getDeclaringClass(), m.getDeclaringClass(), m.getModifiers(), in unreflect() 1409 methodType = methodType.insertParameterTypes(0, m.getDeclaringClass()); in unreflect() 1458 return findSpecial(m, methodType, m.getDeclaringClass() /* refc */, specialCaller); in unreflectSpecial() [all …]
|
D | MethodHandleInfo.java | 154 public Class<?> getDeclaringClass(); in getDeclaringClass() method
|
/libcore/ojluni/src/main/java/java/util/ |
D | EnumSet.java | 214 EnumSet<E> result = noneOf(e.getDeclaringClass()); in of() 235 EnumSet<E> result = noneOf(e1.getDeclaringClass()); in of() 258 EnumSet<E> result = noneOf(e1.getDeclaringClass()); in of() 283 EnumSet<E> result = noneOf(e1.getDeclaringClass()); in of() 312 EnumSet<E> result = noneOf(e1.getDeclaringClass()); in of() 337 EnumSet<E> result = noneOf(first.getDeclaringClass()); in of() 361 EnumSet<E> result = noneOf(from.getDeclaringClass()); in range()
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | OldAndroidEnumTest.java | 46 assertSame(MyEnum.ONE.getDeclaringClass(), MyEnum.class); in testEnum() 47 assertSame(MyEnum.FOUR.getDeclaringClass(), MyEnum.class); in testEnum()
|
D | OldClassTest.java | 718 assertEquals(OldClassTest.class, Intf1.class.getDeclaringClass()); in test_getDeclaringClass() 719 assertEquals(null, Serializable.class.getDeclaringClass()); in test_getDeclaringClass() 720 assertEquals(null, OldClassTest.class.getDeclaringClass()); in test_getDeclaringClass() 722 assertEquals(OldClassTest.class, PublicTestClass.class.getDeclaringClass()); in test_getDeclaringClass() 725 assertEquals(null, new Object() {}.getClass().getDeclaringClass()); in test_getDeclaringClass() 726 …Equals(null, new AnonymousMemberFixture().instanceOfAnonymousClass.getClass().getDeclaringClass()); in test_getDeclaringClass() 729 assertEquals(null, char[].class.getDeclaringClass()); in test_getDeclaringClass() 730 assertEquals(null, int.class.getDeclaringClass()); in test_getDeclaringClass() 731 assertEquals(null, void.class.getDeclaringClass()); in test_getDeclaringClass()
|
/libcore/ojluni/src/main/java/java/lang/ |
D | Enum.java | 184 self.getDeclaringClass() != other.getDeclaringClass()) in compareTo() 202 public final Class<E> getDeclaringClass() { in getDeclaringClass() method in Enum
|
D | Class.java | 1186 public native Class<?> getDeclaringClass(); in getDeclaringClass() method in Class 1324 return getDeclaringClass() != null; in isMemberClass()
|
/libcore/luni/src/main/java/libcore/reflect/ |
D | TypeVariableImpl.java | 94 return ((Method)decl).getDeclaringClass(); in nextLayer() 96 return ((Constructor)decl).getDeclaringClass(); in nextLayer()
|
D | ParameterizedTypeImpl.java | 53 ownerTypeRes = getRawType().getDeclaringClass(); in getOwnerType()
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | AnnotatedElementBenchmark.java | 159 HasSmallAnnotation.class.getDeclaringClass(); in timeGetDeclaringClass()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | EnumTest.java | 86 assertEquals(Sample.class, moe.getDeclaringClass()); in test_getDeclaringClass()
|
/libcore/support/src/test/java/org/apache/harmony/testframework/serialization/ |
D | SerializationTest.java | 277 if (m.getDeclaringClass() != Object.class) { in defineComparator()
|
/libcore/luni/src/test/java/libcore/java/lang/invoke/ |
D | MethodHandlesTest.java | 1799 assertTrue(UnreflectTester.class == info.getDeclaringClass()); in testRevealDirect() 1821 assertTrue(UnreflectTester.class == info.getDeclaringClass()); in testRevealDirect() 1835 assertTrue(UnreflectTester.class == info.getDeclaringClass()); in testRevealDirect() 1848 assertTrue(UnreflectTester.class == info.getDeclaringClass()); in testRevealDirect() 1862 assertTrue(UnreflectTester.class == info.getDeclaringClass()); in testRevealDirect() 1885 assertTrue(UnreflectTester.class == info.getDeclaringClass()); in testRevealDirect()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/ |
D | MethodTest.java | 251 + mths[0].getDeclaringClass().toString(), mths[0] in test_getDeclaringClass() 252 .getDeclaringClass().equals(TestMethod.class)); in test_getDeclaringClass()
|