public interface MethodHandle
Method, this allows a method of a Plastic class to be invoked regardless of visibility. Plastic
ensures that reflection is not necessary.| Modifier and Type | Method and Description |
|---|---|
MethodInvocationResult |
invoke(Object instance,
Object... arguments)
Invokes the method for this handle on the instance.
|
MethodInvocationResult invoke(Object instance, Object... arguments)
instance - the instance containing the method to invokearguments - the arguments, if any, to pass to the method. Wrapper types will be unwrapped as necessary
to perform the invocation.ClassCastException - if instance is not the correct type for this method.RuntimeException - if the actual method throws a runtime exception5.6.4 - Copyright © 2003-2021 The Apache Software Foundation.