Interface InvocationHandler

  • All Known Implementing Classes:
    DelegatingHandler, RecursiveHandler

    public interface InvocationHandler
    Strategy for executing a resolved method call, producing a result that tells the interpreter how to proceed.
    • Method Detail

      • invoke

        InvocationResult invoke​(MethodEntry method,
                                ObjectInstance receiver,
                                ConcreteValue[] args,
                                InvocationContext context)
        Executes a resolved call.
        Parameters:
        method - the resolved target
        receiver - the instance for an instance call, null for a static call
        args - the argument values in declaration order
        context - the interpreter services available for the duration of the call
        Returns:
        the outcome: a completed value, a guest exception, a delegation, or a frame to push