Package bridge

Class Invocation.Executor

java.lang.Object
bridge.Invocation.Executor
Enclosing class:
Invocation

public final class Invocation.Executor extends Object
A class that is used to execute method invocations
  • Method Details

    • with

      public Invocation.Executor with(@Polymorphic Object argument)
      Adds an argument to the stack
      Parameters:
      argument - Argument value
      Returns:
      An imaginary reference for you to continue executing your request with.
      Notes:
      Calling this overload will cause the parameter type to be determined automatically.
    • with

      public Invocation.Executor with(Class<?> parameter, Object argument)
      Adds an argument to the stack
      Parameters:
      parameter - Parameter type constant – no dynamic values are permitted here.
      argument - Argument value
      Returns:
      An imaginary reference for you to continue executing your request with.
    • with

      public Invocation.Executor with(String parameter, Object argument)
      Adds an argument to the stack
      Parameters:
      parameter - Parameter type name constant – no dynamic values or string manipulation is permitted here.
      argument - Argument value
      Returns:
      An imaginary reference for you to continue executing your request with.
    • check

      public <E extends Throwable> Invocation.Executor check() throws E
      Brings an exception into scope
      Type Parameters:
      E - Exception type
      Returns:
      An imaginary reference for you to continue executing your request with.
      Throws:
      E extends Throwable
    • check

      public <E extends Throwable> Invocation.Executor check(Class<E> exception) throws E
      Brings an exception into scope
      Parameters:
      exception - Exception type constant – no dynamic values are permitted here.
      Returns:
      An imaginary reference for you to continue executing your request with.
      Throws:
      E extends Throwable
    • invoke

      public <@Polymorphic T> T invoke()
      Executes the method
      Returns:
      The real return value of the method.