@HashCodeAndEqualsPlugin.Enhance public static class MethodCall.MethodInvoker.ForVirtualInvocation extends java.lang.Object implements MethodCall.MethodInvoker
Modifier and Type | Class and Description |
---|---|
protected static class |
MethodCall.MethodInvoker.ForVirtualInvocation.Factory
A method invoker factory for a virtual method invocation.
|
protected static class |
MethodCall.MethodInvoker.ForVirtualInvocation.WithImplicitType
A method invoker for a virtual method that uses an implicit target type.
|
MethodCall.MethodInvoker.ForContextualInvocation, MethodCall.MethodInvoker.ForDefaultMethodInvocation, MethodCall.MethodInvoker.ForSuperMethodInvocation, MethodCall.MethodInvoker.ForVirtualInvocation
Modifier and Type | Field and Description |
---|---|
private TypeDescription |
typeDescription
The type description to virtually invoke the method upon.
|
Modifier | Constructor and Description |
---|---|
protected |
ForVirtualInvocation(TypeDescription typeDescription)
Creates a new method invoking for a virtual method invocation.
|
Modifier and Type | Method and Description |
---|---|
StackManipulation |
toStackManipulation(MethodDescription invokedMethod,
Implementation.Target implementationTarget)
Invokes the method.
|
private final TypeDescription typeDescription
protected ForVirtualInvocation(TypeDescription typeDescription)
typeDescription
- The type description to virtually invoke the method upon.public StackManipulation toStackManipulation(MethodDescription invokedMethod, Implementation.Target implementationTarget)
toStackManipulation
in interface MethodCall.MethodInvoker
invokedMethod
- The method to be invoked.implementationTarget
- The implementation target of the instrumented instance.