Interface DelegatingHandler.InvocationCallback

  • Enclosing class:
    DelegatingHandler
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public static interface DelegatingHandler.InvocationCallback
    Callback that performs a delegated method invocation and returns its concrete result.
    • Method Detail

      • invoke

        ConcreteValue invoke​(MethodEntry method,
                             ObjectInstance receiver,
                             ConcreteValue[] args)
                      throws Exception
        Performs the delegated call.
        Parameters:
        method - the method being invoked
        receiver - the receiver instance, null for a static method
        args - the argument values
        Returns:
        the call result, null for a void method
        Throws:
        Exception - any failure, which the handler turns into a guest heap exception