Interface MethodCall.MethodInvoker

All Known Implementing Classes:
MethodCall.MethodInvoker.ForContextualInvocation, MethodCall.MethodInvoker.ForDefaultMethodInvocation, MethodCall.MethodInvoker.ForSuperMethodInvocation, MethodCall.MethodInvoker.ForVirtualInvocation, MethodCall.MethodInvoker.ForVirtualInvocation.WithImplicitType
Enclosing class:
MethodCall

protected static interface MethodCall.MethodInvoker
A method invoker is responsible for creating a method invocation that is to be applied by a MethodCall.
  • Method Details

    • toStackManipulation

      StackManipulation toStackManipulation(MethodDescription invokedMethod, Implementation.Target implementationTarget)
      Invokes the method.
      Parameters:
      invokedMethod - The method to be invoked.
      implementationTarget - The implementation target of the instrumented instance.
      Returns:
      A stack manipulation that represents the method invocation.