Class MethodHandleImpl

    • Method Detail

      • invoke

        public MethodInvocationResult invoke​(Object instance,
                                             Object... arguments)
        Description copied from interface: MethodHandle
        Invokes the method for this handle on the instance.
        Specified by:
        invoke in interface MethodHandle
        instance - the instance containing the method to invoke
        arguments - the arguments, if any, to pass to the method. Wrapper types will be unwrapped as necessary to perform the invocation.
        result object encapsulating the actual return value or the checked exception thrown by the method