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 aMethodCall
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
MethodCall.MethodInvoker.Factory
A factory for creating a method invoker.static class
MethodCall.MethodInvoker.ForContextualInvocation
Applies a contextual invocation of the provided method, i.e.static class
MethodCall.MethodInvoker.ForDefaultMethodInvocation
Invokes a method as a Java 8 default method.static class
MethodCall.MethodInvoker.ForSuperMethodInvocation
Applies a super method invocation of the provided method.static class
MethodCall.MethodInvoker.ForVirtualInvocation
Applies a virtual invocation on a given type.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StackManipulation
toStackManipulation(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.
-
-