Interface BoundExecutable<T,​R>

    • Method Detail

      • getTarget

        Executable<T,​R> getTarget()
        Returns:
        The target executable
      • invoke

        R invoke​(T instance)
        Invoke the bound Executable.
        Parameters:
        instance - The target instance
        Returns:
        The result
      • getBoundArguments

        java.lang.Object[] getBoundArguments()
        That arguments that will be used to invoke the method.
        Returns:
        The arguments
      • getDeclaringType

        default java.lang.Class<T> getDeclaringType()
        Specified by:
        getDeclaringType in interface Executable<T,​R>
        Returns:
        The declaring type
      • getUnboundArguments

        default java.util.List<Argument<?>> getUnboundArguments()
        If the executable can only be partially bound then this method will return the arguments that have not been bound.
        Returns:
        The unbound arguments
      • invoke

        default R invoke​(T instance,
                         java.lang.Object... arguments)
        Description copied from interface: Executable
        Invokes the method.
        Specified by:
        invoke in interface Executable<T,​R>
        Parameters:
        instance - The instance. Nullable only if it's a static method call.
        arguments - The arguments
        Returns:
        The result
      • getArguments

        default Argument[] getArguments()
        Description copied from interface: Executable
        The required argument types.
        Specified by:
        getArguments in interface Executable<T,​R>
        Returns:
        The arguments