Interface MethodInvocation.Decomposer<T,​R>

  • Type Parameters:
    T - type of receiver expected
    R - type of result of decomposition.
    Enclosing class:
    MethodInvocation<T>
    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 MethodInvocation.Decomposer<T,​R>
    Interface that allows decomposition of the invocation.
    • Method Detail

      • decompose

        R decompose​(Method method,
                    @Nullable
                    T receiver,
                    Object... arguments)
        Decomposition method.
        Parameters:
        method - method that was called
        receiver - receiver that the method was called on, or null if the method was static
        arguments - arguments passed to the method, in source (flat) representation
        Returns:
        result of decomposition