31 internals of java.lang.reflect. */ |
31 internals of java.lang.reflect. */ |
32 |
32 |
33 public interface LangReflectAccess { |
33 public interface LangReflectAccess { |
34 /** Creates a new java.lang.reflect.Field. Access checks as per |
34 /** Creates a new java.lang.reflect.Field. Access checks as per |
35 java.lang.reflect.AccessibleObject are not overridden. */ |
35 java.lang.reflect.AccessibleObject are not overridden. */ |
36 public Field newField(Class declaringClass, |
36 public Field newField(Class<?> declaringClass, |
37 String name, |
37 String name, |
38 Class type, |
38 Class<?> type, |
39 int modifiers, |
39 int modifiers, |
40 int slot, |
40 int slot, |
41 String signature, |
41 String signature, |
42 byte[] annotations); |
42 byte[] annotations); |
43 |
43 |
44 /** Creates a new java.lang.reflect.Method. Access checks as per |
44 /** Creates a new java.lang.reflect.Method. Access checks as per |
45 java.lang.reflect.AccessibleObject are not overridden. */ |
45 java.lang.reflect.AccessibleObject are not overridden. */ |
46 public Method newMethod(Class declaringClass, |
46 public Method newMethod(Class<?> declaringClass, |
47 String name, |
47 String name, |
48 Class[] parameterTypes, |
48 Class<?>[] parameterTypes, |
49 Class returnType, |
49 Class<?> returnType, |
50 Class[] checkedExceptions, |
50 Class<?>[] checkedExceptions, |
51 int modifiers, |
51 int modifiers, |
52 int slot, |
52 int slot, |
53 String signature, |
53 String signature, |
54 byte[] annotations, |
54 byte[] annotations, |
55 byte[] parameterAnnotations, |
55 byte[] parameterAnnotations, |
56 byte[] annotationDefault); |
56 byte[] annotationDefault); |
57 |
57 |
58 /** Creates a new java.lang.reflect.Constructor. Access checks as |
58 /** Creates a new java.lang.reflect.Constructor. Access checks as |
59 per java.lang.reflect.AccessibleObject are not overridden. */ |
59 per java.lang.reflect.AccessibleObject are not overridden. */ |
60 public <T> Constructor<T> newConstructor(Class<T> declaringClass, |
60 public <T> Constructor<T> newConstructor(Class<T> declaringClass, |
61 Class[] parameterTypes, |
61 Class<?>[] parameterTypes, |
62 Class[] checkedExceptions, |
62 Class<?>[] checkedExceptions, |
63 int modifiers, |
63 int modifiers, |
64 int slot, |
64 int slot, |
65 String signature, |
65 String signature, |
66 byte[] annotations, |
66 byte[] annotations, |
67 byte[] parameterAnnotations); |
67 byte[] parameterAnnotations); |
72 /** Sets the MethodAccessor object for a java.lang.reflect.Method */ |
72 /** Sets the MethodAccessor object for a java.lang.reflect.Method */ |
73 public void setMethodAccessor(Method m, MethodAccessor accessor); |
73 public void setMethodAccessor(Method m, MethodAccessor accessor); |
74 |
74 |
75 /** Gets the ConstructorAccessor object for a |
75 /** Gets the ConstructorAccessor object for a |
76 java.lang.reflect.Constructor */ |
76 java.lang.reflect.Constructor */ |
77 public ConstructorAccessor getConstructorAccessor(Constructor c); |
77 public ConstructorAccessor getConstructorAccessor(Constructor<?> c); |
78 |
78 |
79 /** Sets the ConstructorAccessor object for a |
79 /** Sets the ConstructorAccessor object for a |
80 java.lang.reflect.Constructor */ |
80 java.lang.reflect.Constructor */ |
81 public void setConstructorAccessor(Constructor c, |
81 public void setConstructorAccessor(Constructor<?> c, |
82 ConstructorAccessor accessor); |
82 ConstructorAccessor accessor); |
83 |
83 |
84 /** Gets the "slot" field from a Constructor (used for serialization) */ |
84 /** Gets the "slot" field from a Constructor (used for serialization) */ |
85 public int getConstructorSlot(Constructor c); |
85 public int getConstructorSlot(Constructor<?> c); |
86 |
86 |
87 /** Gets the "signature" field from a Constructor (used for serialization) */ |
87 /** Gets the "signature" field from a Constructor (used for serialization) */ |
88 public String getConstructorSignature(Constructor c); |
88 public String getConstructorSignature(Constructor<?> c); |
89 |
89 |
90 /** Gets the "annotations" field from a Constructor (used for serialization) */ |
90 /** Gets the "annotations" field from a Constructor (used for serialization) */ |
91 public byte[] getConstructorAnnotations(Constructor c); |
91 public byte[] getConstructorAnnotations(Constructor<?> c); |
92 |
92 |
93 /** Gets the "parameterAnnotations" field from a Constructor (used for serialization) */ |
93 /** Gets the "parameterAnnotations" field from a Constructor (used for serialization) */ |
94 public byte[] getConstructorParameterAnnotations(Constructor c); |
94 public byte[] getConstructorParameterAnnotations(Constructor<?> c); |
95 |
95 |
96 // |
96 // |
97 // Copying routines, needed to quickly fabricate new Field, |
97 // Copying routines, needed to quickly fabricate new Field, |
98 // Method, and Constructor objects from templates |
98 // Method, and Constructor objects from templates |
99 // |
99 // |