public static class MethodCall.MethodInvoker.ForVirtualInvocation extends Object implements MethodCall.MethodInvoker
| Modifier and Type | Class and Description | 
|---|---|
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 | Constructor and Description | 
|---|---|
protected  | 
ForVirtualInvocation(Class<?> type)
Creates a new method invoking for a virtual method invocation. 
 | 
protected  | 
ForVirtualInvocation(TypeDescription typeDescription)
Creates a new method invoking for a virtual method invocation. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
equals(Object other)  | 
int | 
hashCode()  | 
StackManipulation | 
invoke(MethodDescription invokedMethod,
      Implementation.Target implementationTarget)
Invokes the method. 
 | 
String | 
toString()  | 
protected ForVirtualInvocation(TypeDescription typeDescription)
typeDescription - The type description to virtually invoke the method upon.protected ForVirtualInvocation(Class<?> type)
type - The type to virtually invoke the method upon.public StackManipulation invoke(MethodDescription invokedMethod, Implementation.Target implementationTarget)
MethodCall.MethodInvokerinvoke in interface MethodCall.MethodInvokerinvokedMethod - The method to be invoked.implementationTarget - The implementation target of the instrumented instance.Copyright © 2014–2016. All rights reserved.