src/share/classes/sun/reflect/LangReflectAccess.java

Print this page

        

*** 31,67 **** internals of java.lang.reflect. */ public interface LangReflectAccess { /** Creates a new java.lang.reflect.Field. Access checks as per java.lang.reflect.AccessibleObject are not overridden. */ ! public Field newField(Class declaringClass, String name, ! Class type, int modifiers, int slot, String signature, byte[] annotations); /** Creates a new java.lang.reflect.Method. Access checks as per java.lang.reflect.AccessibleObject are not overridden. */ ! public Method newMethod(Class declaringClass, String name, ! Class[] parameterTypes, ! Class returnType, ! Class[] checkedExceptions, int modifiers, int slot, String signature, byte[] annotations, byte[] parameterAnnotations, byte[] annotationDefault); /** Creates a new java.lang.reflect.Constructor. Access checks as per java.lang.reflect.AccessibleObject are not overridden. */ public <T> Constructor<T> newConstructor(Class<T> declaringClass, ! Class[] parameterTypes, ! Class[] checkedExceptions, int modifiers, int slot, String signature, byte[] annotations, byte[] parameterAnnotations); --- 31,67 ---- internals of java.lang.reflect. */ public interface LangReflectAccess { /** Creates a new java.lang.reflect.Field. Access checks as per java.lang.reflect.AccessibleObject are not overridden. */ ! public Field newField(Class<?> declaringClass, String name, ! Class<?> type, int modifiers, int slot, String signature, byte[] annotations); /** Creates a new java.lang.reflect.Method. Access checks as per java.lang.reflect.AccessibleObject are not overridden. */ ! public Method newMethod(Class<?> declaringClass, String name, ! Class<?>[] parameterTypes, ! Class<?> returnType, ! Class<?>[] checkedExceptions, int modifiers, int slot, String signature, byte[] annotations, byte[] parameterAnnotations, byte[] annotationDefault); /** Creates a new java.lang.reflect.Constructor. Access checks as per java.lang.reflect.AccessibleObject are not overridden. */ public <T> Constructor<T> newConstructor(Class<T> declaringClass, ! Class<?>[] parameterTypes, ! Class<?>[] checkedExceptions, int modifiers, int slot, String signature, byte[] annotations, byte[] parameterAnnotations);
*** 72,99 **** /** Sets the MethodAccessor object for a java.lang.reflect.Method */ public void setMethodAccessor(Method m, MethodAccessor accessor); /** Gets the ConstructorAccessor object for a java.lang.reflect.Constructor */ ! public ConstructorAccessor getConstructorAccessor(Constructor c); /** Sets the ConstructorAccessor object for a java.lang.reflect.Constructor */ ! public void setConstructorAccessor(Constructor c, ConstructorAccessor accessor); /** Gets the "slot" field from a Constructor (used for serialization) */ ! public int getConstructorSlot(Constructor c); /** Gets the "signature" field from a Constructor (used for serialization) */ ! public String getConstructorSignature(Constructor c); /** Gets the "annotations" field from a Constructor (used for serialization) */ ! public byte[] getConstructorAnnotations(Constructor c); /** Gets the "parameterAnnotations" field from a Constructor (used for serialization) */ ! public byte[] getConstructorParameterAnnotations(Constructor c); // // Copying routines, needed to quickly fabricate new Field, // Method, and Constructor objects from templates // --- 72,99 ---- /** Sets the MethodAccessor object for a java.lang.reflect.Method */ public void setMethodAccessor(Method m, MethodAccessor accessor); /** Gets the ConstructorAccessor object for a java.lang.reflect.Constructor */ ! public ConstructorAccessor getConstructorAccessor(Constructor<?> c); /** Sets the ConstructorAccessor object for a java.lang.reflect.Constructor */ ! public void setConstructorAccessor(Constructor<?> c, ConstructorAccessor accessor); /** Gets the "slot" field from a Constructor (used for serialization) */ ! public int getConstructorSlot(Constructor<?> c); /** Gets the "signature" field from a Constructor (used for serialization) */ ! public String getConstructorSignature(Constructor<?> c); /** Gets the "annotations" field from a Constructor (used for serialization) */ ! public byte[] getConstructorAnnotations(Constructor<?> c); /** Gets the "parameterAnnotations" field from a Constructor (used for serialization) */ ! public byte[] getConstructorParameterAnnotations(Constructor<?> c); // // Copying routines, needed to quickly fabricate new Field, // Method, and Constructor objects from templates //