Package net.bytebuddy.implementation
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.MethodInvokerA method invoker is responsible for creating a method invocation that is to be applied by aMethodCall.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceMethodCall.MethodInvoker.FactoryA factory for creating a method invoker.static classMethodCall.MethodInvoker.ForContextualInvocationApplies a contextual invocation of the provided method, i.e.static classMethodCall.MethodInvoker.ForDefaultMethodInvocationInvokes a method as a Java 8 default method.static classMethodCall.MethodInvoker.ForSuperMethodInvocationApplies a super method invocation of the provided method.static classMethodCall.MethodInvoker.ForVirtualInvocationApplies a virtual invocation on a given type.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StackManipulationtoStackManipulation(MethodDescription invokedMethod, Implementation.Target implementationTarget)Invokes the method.
-
-
-
Method Detail
-
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.
-
-