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 interface
A factory for creating a method invoker.static class
Applies a contextual invocation of the provided method, i.e.static class
Invokes a method as a Java 8 default method.static class
Applies a super method invocation of the provided method.static class
Applies 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.
-