/libcore/ojluni/src/lambda/java/java/lang/invoke/ |
D | MethodType.java | 34 MethodType methodType(Class<?> rtype, Class<?>[] ptypes) { in methodType() 39 MethodType methodType(Class<?> rtype, List<Class<?>> ptypes) { in methodType() 44 MethodType methodType(Class<?> rtype, Class<?> ptype0, Class<?>... ptypes) { return null; } in methodType() 47 MethodType methodType(Class<?> rtype) { return null; } in methodType() 50 MethodType methodType(Class<?> rtype, Class<?> ptype0) { return null; } in methodType() 53 MethodType methodType(Class<?> rtype, MethodType ptypes) { return null; } in methodType() 61 public MethodType changeParameterType(int num, Class<?> nptype) { return null; } in changeParameterType() 63 public MethodType insertParameterTypes(int num, Class<?>... ptypesToInsert) { return null; } in insertParameterTypes() 65 public MethodType appendParameterTypes(Class<?>... ptypesToInsert) { return null; } in appendParameterTypes() 67 public MethodType insertParameterTypes(int num, List<Class<?>> ptypesToInsert) { return null; } in insertParameterTypes() [all …]
|
D | MethodHandles.java | 41 reflectAs(Class<T> expected, MethodHandle target) { return null; } in reflectAs() 53 public Class<?> lookupClass() { return null; } in lookupClass() 57 public Lookup in(Class<?> requestedLookupClass) { return null; } in in() 60 …MethodHandle findStatic(Class<?> refc, String name, MethodType type) throws NoSuchMethodException,… in findStatic() 62 …public MethodHandle findVirtual(Class<?> refc, String name, MethodType type) throws NoSuchMethodEx… in findVirtual() 64 …public MethodHandle findConstructor(Class<?> refc, MethodType type) throws NoSuchMethodException, … in findConstructor() 66 public MethodHandle findSpecial(Class<?> refc, String name, MethodType type, in findSpecial() 67 … Class<?> specialCaller) throws NoSuchMethodException, IllegalAccessException { return null; } in findSpecial() 69 …public MethodHandle findGetter(Class<?> refc, String name, Class<?> type) throws NoSuchFieldExcept… in findGetter() 71 …public MethodHandle findSetter(Class<?> refc, String name, Class<?> type) throws NoSuchFieldExcept… in findSetter() [all …]
|
/libcore/ojluni/src/main/java/java/lang/reflect/ |
D | Proxy.java | 244 private static final Class<?>[] constructorParams = 250 private static final WeakCache<ClassLoader, Class<?>[], Class<?>> 371 public static Class<?> getProxyClass(ClassLoader loader, in getProxyClass() 372 Class<?>... interfaces) in getProxyClass() 429 private static Class<?> getProxyClass0(ClassLoader loader, in getProxyClass0() 430 Class<?>... interfaces) { in getProxyClass0() 454 private static final class Key1 extends WeakReference<Class<?>> { 457 Key1(Class<?> intf) { in Key1() 469 Class<?> intf; in equals() 481 private static final class Key2 extends WeakReference<Class<?>> { [all …]
|
D | Constructor.java | 64 private final Class<?> serializationClass; 65 private final Class<?> serializationCtor; 71 private Constructor(Class<?> serializationCtor, in Constructor() 72 Class<?> serializationClass) { in Constructor() 80 public Constructor<T> serializationCopy(Class<?> ctor, Class<?> cl) { in serializationCopy() 96 public Class<T> getDeclaringClass() { in getDeclaringClass() 97 return (Class<T>) super.getDeclaringClassInternal(); in getDeclaringClass() 136 public Class<?>[] getParameterTypes() { in getParameterTypes() 138 Class<?>[] paramTypes = super.getParameterTypesInternal(); in getParameterTypes() 173 public native Class<?>[] getExceptionTypes(); in getExceptionTypes() [all …]
|
/libcore/ojluni/annotations/hiddenapi/java/lang/reflect/ |
D | Proxy.java | 42 public static java.lang.Class<?> getProxyClass( in getProxyClass() 43 java.lang.ClassLoader loader, java.lang.Class<?>... interfaces) in getProxyClass() 48 private static java.lang.Class<?> getProxyClass0( in getProxyClass0() 49 java.lang.ClassLoader loader, java.lang.Class<?>... interfaces) { in getProxyClass0() 53 private static java.util.List<java.lang.Class<?>[]> deduplicateAndGetExceptions( in deduplicateAndGetExceptions() 58 private static java.lang.Class<?>[] intersectExceptions( in intersectExceptions() 59 java.lang.Class<?>[] aExceptions, java.lang.Class<?>[] bExceptions) { in intersectExceptions() 68 java.lang.Class<?>[] interfaces) { in getMethods() 73 java.lang.Class<?>[] interfaces, java.util.List<java.lang.reflect.Method> methods) { in getMethodsRecursive() 77 private static native java.lang.Class<?> generateProxy( in generateProxy() [all …]
|
D | Executable.java | 40 boolean equalParamTypes(java.lang.Class<?>[] params1, java.lang.Class<?>[] params2) { in equalParamTypes() 44 void separateWithCommas(java.lang.Class<?>[] types, java.lang.StringBuilder sb) { in separateWithCommas() 55 java.lang.Class<?>[] parameterTypes, in sharedToString() 56 java.lang.Class<?>[] exceptionTypes) { in sharedToString() 68 public abstract java.lang.Class<?> getDeclaringClass(); in getDeclaringClass() 76 public abstract java.lang.Class<?>[] getParameterTypes(); in getParameterTypes() 112 public abstract java.lang.Class<?>[] getExceptionTypes(); in getExceptionTypes() 131 java.lang.Class<T> annotationClass) { in getAnnotation() 136 java.lang.Class<T> annotationClass); in getAnnotationNative() 139 java.lang.Class<T> annotationClass) { in getAnnotationsByType() [all …]
|
D | Constructor.java | 39 java.lang.Class<?> serializationCtor, java.lang.Class<?> serializationClass) { in Constructor() 45 java.lang.Class<?> ctor, java.lang.Class<?> cl) { in serializationCopy() 53 public java.lang.Class<T> getDeclaringClass() { in getDeclaringClass() 69 public java.lang.Class<?>[] getParameterTypes() { in getParameterTypes() 81 public native java.lang.Class<?>[] getExceptionTypes(); in getExceptionTypes() 118 java.lang.Class<?> ctorClass, java.lang.Class<?> allocClass) in newInstanceFromSerialization() 135 java.lang.Class<T> annotationClass) { in getAnnotation() 153 private final java.lang.Class<?> serializationClass; 159 private final java.lang.Class<?> serializationCtor;
|
/libcore/ojluni/src/main/java/java/lang/invoke/ |
D | MethodType.java | 94 private final Class<?> rtype; 95 private final Class<?>[] ptypes; 108 private MethodType(Class<?> rtype, Class<?>[] ptypes, boolean trusted) { in MethodType() 121 private MethodType(Class<?>[] ptypes, Class<?> rtype) { in MethodType() 130 /*trusted*/ /** @hide */ public Class<?> rtype() { return rtype; } in rtype() 131 /*trusted*/ /** @hide */ public Class<?>[] ptypes() { return ptypes; } in ptypes() 166 private static void checkRtype(Class<?> rtype) { in checkRtype() 169 private static void checkPtype(Class<?> ptype) { in checkPtype() 175 private static int checkPtypes(Class<?>[] ptypes) { in checkPtypes() 177 for (Class<?> ptype : ptypes) { in checkPtypes() [all …]
|
/libcore/ojluni/src/main/java/sun/invoke/util/ |
D | VerifyAccess.java | 85 public static boolean isMemberAccessible(Class<?> refc, // symbolic ref class in isMemberAccessible() 86 Class<?> defc, // actual def class in isMemberAccessible() 88 Class<?> lookupClass, in isMemberAccessible() 135 static boolean isRelatedClass(Class<?> refc, Class<?> lookupClass) { in isRelatedClass() 141 static boolean isSubClass(Class<?> lookupClass, Class<?> defc) { in isSubClass() 170 public static boolean isClassAccessible(Class<?> refc, Class<?> lookupClass, in isClassAccessible() 281 public static boolean isSamePackage(Class<?> class1, Class<?> class2) { in isSamePackage() 323 public static boolean isSamePackageMember(Class<?> class1, Class<?> class2) { in isSamePackageMember() 333 private static Class<?> getOutermostEnclosingClass(Class<?> c) { in getOutermostEnclosingClass() 334 Class<?> pkgmem = c; in getOutermostEnclosingClass() [all …]
|
D | BytecodeDescriptor.java | 40 public static List<Class<?>> parseMethod(String bytecodeSignature, ClassLoader loader) { in parseMethod() 44 static List<Class<?>> parseMethod(String bytecodeSignature, in parseMethod() 50 ArrayList<Class<?>> ptypes = new ArrayList<Class<?>>(); in parseMethod() 54 Class<?> pt = parseSig(str, i, end, loader); in parseMethod() 63 Class<?> rtype = parseSig(str, i, end, loader); in parseMethod() 74 static private Class<?> parseSig(String str, int[] i, int end, ClassLoader loader) { in parseSig() 88 Class<?> t = parseSig(str, i, end, loader); in parseSig() 97 public static String unparse(Class<?> type) { in unparse() 108 if (type instanceof Class<?>) in unparse() 109 return unparse((Class<?>) type); in unparse() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | ClassTest.java | 98 Object.class, Class.forName("java.lang.Object")); in test_forNameLjava_lang_String() 100 Object[][].class, Class.forName("[[Ljava.lang.Object;")); in test_forNameLjava_lang_String() 103 int[].class, Class.forName("[I")); in test_forNameLjava_lang_String() 106 Class.forName("int"); in test_forNameLjava_lang_String() 112 Class.forName("byte"); in test_forNameLjava_lang_String() 117 Class.forName("char"); in test_forNameLjava_lang_String() 123 Class.forName("void"); in test_forNameLjava_lang_String() 129 Class.forName("short"); in test_forNameLjava_lang_String() 134 Class.forName("long"); in test_forNameLjava_lang_String() 140 Class.forName("boolean"); in test_forNameLjava_lang_String() [all …]
|
/libcore/luni/src/test/java/libcore/java/lang/reflect/ |
D | OldAndroidClassTest.java | 32 Class helloClass = Class.forName(OldAndroidClassTest.class.getName()); in testNewInstance() 39 Class.forName("this.class.DoesNotExist"); in testForName() 47 Class.forName(packageName + ".ClassWithPrivateConstructor").newInstance(); in testNewInstancePrivateConstructor() 54 Class helloClass = Class.forName(OldAndroidClassTest.class.getName()); in testGetDeclaredMethod() 55 Method method = helloClass.getDeclaredMethod("method", (Class[]) null); in testGetDeclaredMethod() 60 Class helloClass = Class.forName(OldAndroidClassTest.class.getName()); in testGetDeclaredMethodWithArgs() 70 Class helloClass = Class.forName(OldAndroidClassTest.class.getName()); in testGetDeclaredMethodPrivate() 71 Method method = helloClass.getDeclaredMethod("privateMethod", (Class[]) null); in testGetDeclaredMethodPrivate() 76 Class helloClass = Class.forName(OldAndroidClassTest.class.getName()); in testGetSuperclass() 77 Class objectClass = Class.forName("java.lang.Object"); in testGetSuperclass() [all …]
|
D | ConstructorTest.java | 26 Constructor<?> constructor = ConstructorTestHelper.class.getConstructor(new Class[0]); in test_getExceptionTypes() 27 Class[] exceptions = constructor.getExceptionTypes(); in test_getExceptionTypes() 38 Class[] expectedParameters = new Class[0]; in test_getParameterTypes() 42 expectedParameters = new Class[] { Object.class }; in test_getParameterTypes() 44 Class[] parameters = constructor.getParameterTypes(); in test_getParameterTypes() 55 Class[] expectedParameters = new Class[0]; in test_getParameterCount() 59 expectedParameters = new Class[] { Object.class }; in test_getParameterCount() 66 Class[] expectedParameters = new Class[0]; in test_getParameters() 70 expectedParameters = new Class[] { Object.class }; in test_getParameters() 87 Constructor<?> constructor = ConstructorTestHelper.class.getConstructor((Class[]) null); in testGetConstructorWithNullArgumentsArray() [all …]
|
D | OldGenericTypesTest.java | 66 Class<? extends ConstructorGenericType> clazz = ConstructorGenericType.class; in testConstructorGenericType() 67 TypeVariable<Class> typeVariable = getTypeParameter(clazz); in testConstructorGenericType() 77 Class<? extends GenericType> clazz = GenericType.class; in testStaticMethodGenericType() 78 TypeVariable<Class> typeVariable = getTypeParameter(clazz); in testStaticMethodGenericType() 90 Class<? extends GenericType> clazz = GenericType.class; in testHidingMethodGenericType() 91 TypeVariable<Class> typeVariable = getTypeParameter(clazz); in testHidingMethodGenericType() 110 Class<? extends MultipleGenericTypes> clazz = MultipleGenericTypes.class; in testMultipleGenericTypes() 121 …Method multipleGenericTypesT = clazz.getDeclaredMethod("multipleGenericTypesT", new Class[]{Object… in testMultipleGenericTypes() 128 …Method multipleGenericTypesS = clazz.getDeclaredMethod("multipleGenericTypesS", new Class[]{Object… in testMultipleGenericTypes() 135 …Method multipleGenericTypesTS = clazz.getDeclaredMethod("multipleGenericTypesTS", new Class[]{Obje… in testMultipleGenericTypes() [all …]
|
/libcore/ojluni/annotations/hiddenapi/sun/reflect/ |
D | Reflection.java | 37 public static java.lang.Class<?> getCallerClass() { in getCallerClass() 43 java.lang.Class<?> currentClass, in ensureMemberAccess() 44 java.lang.Class<?> memberClass, in ensureMemberAccess() 52 java.lang.Class<?> currentClass, in verifyMemberAccess() 53 java.lang.Class<?> memberClass, in verifyMemberAccess() 59 private static boolean isSameClassPackage(java.lang.Class<?> c1, java.lang.Class<?> c2) { in isSameClassPackage() 72 static boolean isSubclassOf(java.lang.Class<?> queryClass, java.lang.Class<?> ofClass) { in isSubclassOf()
|
/libcore/ojluni/annotations/hiddenapi/sun/reflect/misc/ |
D | ReflectUtil.java | 37 public static java.lang.Class<?> forName(java.lang.String name) in forName() 42 public static java.lang.Object newInstance(java.lang.Class<?> cls) in newInstance() 48 java.lang.Class<?> currentClass, in ensureMemberAccess() 49 java.lang.Class<?> memberClass, in ensureMemberAccess() 57 private static boolean isSubclassOf(java.lang.Class<?> queryClass, java.lang.Class<?> ofClass) { in isSubclassOf() 62 public static void checkPackageAccess(java.lang.Class<?> clazz) { in checkPackageAccess() 72 public static boolean isPackageAccessible(java.lang.Class<?> clazz) { in isPackageAccessible() 85 public static void checkProxyPackageAccess(java.lang.Class<?> clazz) { in checkProxyPackageAccess() 90 java.lang.ClassLoader ccl, java.lang.Class<?>... interfaces) { in checkProxyPackageAccess() 94 public static boolean isNonPublicProxyClass(java.lang.Class<?> cls) { in isNonPublicProxyClass()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/ |
D | ConstructorTest.java | 114 Set<Class<?>> ignoreOrder = new HashSet<Class<?>>(); in test_getParameterAnnotations() 127 ctor1 = ConstructorTestHelper.class.getConstructor(new Class[0]); in test_getDeclaredAnnotations() 131 Set<Class<?>> ignoreOrder = new HashSet<Class<?>>(); in test_getDeclaredAnnotations() 181 new Class[0]); in test_equalsLjava_lang_Object() 192 Class<? extends ConstructorTestHelper> pclass = new ConstructorTestHelper().getClass(); in test_getDeclaringClass() 193 Constructor<? extends ConstructorTestHelper> ctor = pclass.getConstructor(new Class[0]); in test_getDeclaringClass() 204 Class[] exceptions = null; in test_getExceptionTypes() 205 Class<? extends IndexOutOfBoundsException> ex = null; in test_getExceptionTypes() 208 .getConstructor(new Class[0]); in test_getExceptionTypes() 224 .getConstructor(new Class[0]); in test_getModifiers() [all …]
|
/libcore/luni/src/test/java/libcore/java/lang/reflect/annotations/ |
D | ConstructorTest.java | 67 Class<?> c = AnnotatedClass.class; in testDeclaredAnnotation() 69 Class<? extends Annotation> repeated = Repeated.class; in testDeclaredAnnotation() 76 Class<? extends Annotation> container = Container.class; in testDeclaredAnnotation() 84 private static void checkDeclaredAnnotation(Class<?> c, int constructorArgCount, in checkDeclaredAnnotation() 85 Class<? extends Annotation> annotationType, in checkDeclaredAnnotation() 98 Class<?> c = AnnotatedClass.class; in testGetDeclaredAnnotationsByType() 100 Class<? extends Annotation> repeated = Repeated.class; in testGetDeclaredAnnotationsByType() 108 Class<? extends Annotation> container = Container.class; in testGetDeclaredAnnotationsByType() 118 private static void assertGetDeclaredAnnotationsByType(Class<?> c, int constructorArgCount, in assertGetDeclaredAnnotationsByType() 119 Class<? extends Annotation> annotationType, in assertGetDeclaredAnnotationsByType() [all …]
|
D | FieldTest.java | 66 Class<?> c = AnnotatedClass.class; in testDeclaredAnnotation() 68 Class<? extends Annotation> repeated = Repeated.class; in testDeclaredAnnotation() 75 Class<? extends Annotation> container = Container.class; in testDeclaredAnnotation() 87 Class<?> c, String fieldName, Class<? extends Annotation> annotationType, in checkDeclaredAnnotation() 99 Class<?> c = AnnotatedClass.class; in testGetDeclaredAnnotationsByType() 101 Class<? extends Annotation> repeated = Repeated.class; in testGetDeclaredAnnotationsByType() 111 Class<? extends Annotation> container = Container.class; in testGetDeclaredAnnotationsByType() 123 Class<?> c, Class<? extends Annotation> annotationType, String fieldName, in assertGetDeclaredAnnotationsByType() 131 Class<?> c = AnnotatedClass.class; in testGetAnnotationsByType() 133 Class<? extends Annotation> repeated = Repeated.class; in testGetAnnotationsByType() [all …]
|
D | MethodTest.java | 66 Class<?> c = AnnotatedClass.class; in testDeclaredAnnotation() 68 Class<? extends Annotation> repeated = Repeated.class; in testDeclaredAnnotation() 75 Class<? extends Annotation> container = Container.class; in testDeclaredAnnotation() 87 Class<?> c, String methodName, Class<? extends Annotation> annotationType, in checkDeclaredAnnotation() 99 Class<?> c = AnnotatedClass.class; in testGetDeclaredAnnotationsByType() 101 Class<? extends Annotation> repeated = Repeated.class; in testGetDeclaredAnnotationsByType() 111 Class<? extends Annotation> container = Container.class; in testGetDeclaredAnnotationsByType() 123 Class<?> c, Class<? extends Annotation> annotationType, String methodName, in assertGetDeclaredAnnotationsByType() 131 Class<?> c = AnnotatedClass.class; in testGetAnnotationsByType() 133 Class<? extends Annotation> repeated = Repeated.class; in testGetAnnotationsByType() [all …]
|
/libcore/ojluni/annotations/hiddenapi/java/lang/invoke/ |
D | MethodHandles.java | 46 java.lang.Class<T> expected, java.lang.invoke.MethodHandle target) { in reflectAs() 55 private static void checkClassIsArray(java.lang.Class<?> c) { in checkClassIsArray() 59 private static void checkTypeIsViewable(java.lang.Class<?> componentType) { in checkTypeIsViewable() 63 public static java.lang.invoke.MethodHandle arrayElementGetter(java.lang.Class<?> arrayClass) in arrayElementGetter() 100 public static java.lang.invoke.MethodHandle arrayElementSetter(java.lang.Class<?> arrayClass) in arrayElementSetter() 137 public static java.lang.invoke.VarHandle arrayElementVarHandle(java.lang.Class<?> arrayClass) in arrayElementVarHandle() 143 java.lang.Class<?> viewArrayClass, java.nio.ByteOrder byteOrder) in byteArrayViewVarHandle() 149 java.lang.Class<?> viewArrayClass, java.nio.ByteOrder byteOrder) in byteBufferViewVarHandle() 209 java.lang.Class<?> type, java.lang.Object value) { in constant() 213 public static java.lang.invoke.MethodHandle identity(java.lang.Class<?> type) { in identity() [all …]
|
/libcore/ojluni/src/main/java/sun/reflect/misc/ |
D | ReflectUtil.java | 39 public static Class<?> forName(String name) in forName() 42 return Class.forName(name); in forName() 45 public static Object newInstance(Class<?> cls) in newInstance() 55 public static void ensureMemberAccess(Class<?> currentClass, in ensureMemberAccess() 56 Class<?> memberClass, in ensureMemberAccess() 107 private static boolean isSubclassOf(Class<?> queryClass, in isSubclassOf() 108 Class<?> ofClass) in isSubclassOf() 128 public static void checkPackageAccess(Class<?> clazz) { in checkPackageAccess() 158 public static boolean isPackageAccessible(Class<?> clazz) { in isPackageAccessible() 207 public static void checkProxyPackageAccess(Class<?> clazz) { in checkProxyPackageAccess() [all …]
|
/libcore/ojluni/annotations/hiddenapi/java/lang/ |
D | Class.java | 32 public final class Class<T> class 39 private Class() { in Class() method in Class 51 public static java.lang.Class<?> forName(java.lang.String className) in forName() 56 public static java.lang.Class<?> forName( in forName() 62 static native java.lang.Class<?> classForName( in classForName() 73 public boolean isAssignableFrom(java.lang.Class<?> cls) { in isAssignableFrom() 111 public synchronized java.lang.reflect.TypeVariable<java.lang.Class<T>>[] getTypeParameters() { in getTypeParameters() 115 public java.lang.Class<? super T> getSuperclass() { in getSuperclass() 131 public java.lang.Class<?>[] getInterfaces() { in getInterfaces() 135 private native java.lang.Class<?>[] getInterfacesInternal(); in getInterfacesInternal() [all …]
|
/libcore/ojluni/annotations/hiddenapi/java/io/ |
D | ObjectStreamClass.java | 33 private ObjectStreamClass(java.lang.Class<?> cl) { in ObjectStreamClass() 41 public static java.io.ObjectStreamClass lookup(java.lang.Class<?> cl) { in lookup() 45 public static java.io.ObjectStreamClass lookupAny(java.lang.Class<?> cl) { in lookupAny() 57 public java.lang.Class<?> forClass() { in forClass() 73 static java.io.ObjectStreamClass lookup(java.lang.Class<?> cl, boolean all) { in lookup() 78 java.lang.Class<?> cl, in initProxy() 87 java.lang.Class<?> cl, in initNonProxy() 136 java.io.ObjectStreamField getField(java.lang.String name, java.lang.Class<?> type) { in getField() 265 private java.io.ObjectStreamClass getVariantFor(java.lang.Class<?> cl) in getVariantFor() 271 java.lang.Class<?> cl) { in getExternalizableConstructor() [all …]
|
/libcore/ojluni/annotations/mmodule/java/lang/ |
D | Class.annotated.java | 44 public final class Class<T> implements java.io.Serializable, java.lang.reflect.GenericDeclaration, … class 46 Class() { throw new RuntimeException("Stub!"); } in Class() method in Class 52 public static java.lang.Class<?> forName(java.lang.String className) throws java.lang.ClassNotFound… in forName() 54 public static java.lang.Class<?> forName(java.lang.String name, boolean initialize, java.lang.Class… in forName() 60 public boolean isAssignableFrom(java.lang.Class<?> cls) { throw new RuntimeException("Stub!"); } in isAssignableFrom() 78 public synchronized java.lang.reflect.TypeVariable<java.lang.Class<T>>[] getTypeParameters() { thro… in getTypeParameters() 80 public java.lang.Class<? super T> getSuperclass() { throw new RuntimeException("Stub!"); } in getSuperclass() 88 public java.lang.Class<?>[] getInterfaces() { throw new RuntimeException("Stub!"); } in getInterfaces() 92 public java.lang.Class<?> getComponentType() { throw new RuntimeException("Stub!"); } in getComponentType() 102 public native java.lang.Class<?> getDeclaringClass(); in getDeclaringClass() [all …]
|