public class MethodHandleMethodAccess extends ReflectionMethodAccess
MethodAccess using method handles.method| Constructor and Description |
|---|
MethodHandleMethodAccess(java.lang.invoke.MethodHandles.Lookup lookup,
java.lang.reflect.Method method) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
invoke(java.lang.Object instance,
java.lang.Object... args)
Invoke the method with the given instance and arguments.
|
getAnnotation, getModifiers, getName, getParameterCount, getParameterTypes, getReturnTypepublic MethodHandleMethodAccess(java.lang.invoke.MethodHandles.Lookup lookup,
java.lang.reflect.Method method)
public java.lang.Object invoke(java.lang.Object instance,
java.lang.Object... args)
MethodAccessinvoke in interface MethodAccessinvoke in class ReflectionMethodAccessinstance - The instance to invoke the method onargs - The arguments to pass to the methodMethod.invoke(Object, Object...)