165 |
165 |
166 MethodHandle unreflectSetter(Field field) { |
166 MethodHandle unreflectSetter(Field field) { |
167 return editMethodHandle(SafeUnreflector.unreflectSetter(field)); |
167 return editMethodHandle(SafeUnreflector.unreflectSetter(field)); |
168 } |
168 } |
169 |
169 |
170 MethodHandle unreflect(Method method) { |
|
171 return editMethodHandle(SafeUnreflector.unreflect(method)); |
|
172 } |
|
173 |
|
174 /** |
170 /** |
175 * Returns an edited method handle. A facet might need to edit an unreflected method handle before it is usable with |
171 * Returns an edited method handle. A facet might need to edit an unreflected method handle before it is usable with |
176 * the facet. By default, returns the passed method handle unchanged. The class' static facet will introduce a |
172 * the facet. By default, returns the passed method handle unchanged. The class' static facet will introduce a |
177 * dropArguments. |
173 * dropArguments. |
178 * @param mh the method handle to edit. |
174 * @param mh the method handle to edit. |