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.MethodInvoker
A method invoker is responsible for creating a method invocation that is to be applied by a
MethodCall.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceA factory for creating a method invoker.static classApplies a contextual invocation of the provided method, i.e.static classInvokes a method as a Java 8 default method.static classApplies a super method invocation of the provided method.static classApplies a virtual invocation on a given type. -
Method Summary
Modifier and TypeMethodDescriptiontoStackManipulation(MethodDescription invokedMethod, Implementation.Target implementationTarget) Invokes the method.
-
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.
-