@HashCodeAndEqualsPlugin.Enhance public static class MethodCall.TargetHandler.ForMethodCall extends Object implements MethodCall.TargetHandler
MethodCall.TargetHandler.ForConstructingInvocation, MethodCall.TargetHandler.ForField, MethodCall.TargetHandler.ForMethodCall, MethodCall.TargetHandler.ForMethodParameter, MethodCall.TargetHandler.ForSelfOrStaticInvocation, MethodCall.TargetHandler.ForValue| Modifier | Constructor and Description |
|---|---|
protected |
ForMethodCall(MethodCall methodCall)
Creates a new target handler for the instrumented method.
|
| Modifier and Type | Method and Description |
|---|---|
InstrumentedType |
prepare(InstrumentedType instrumentedType)
Prepares a given instrumented type.
|
StackManipulation |
resolve(Implementation.Target implementationTarget,
MethodDescription invokedMethod,
MethodDescription instrumentedMethod,
TypeDescription instrumentedType,
Assigner assigner,
Assigner.Typing typing)
Creates a stack manipulation that represents the method's invocation.
|
TypeDescription |
resolve(TypeDescription instrumentedType,
MethodDescription instrumentedMethod)
Resolves the method call's target.
|
protected ForMethodCall(MethodCall methodCall)
methodCall - The method call that is the target of the method invocation.public StackManipulation resolve(Implementation.Target implementationTarget, MethodDescription invokedMethod, MethodDescription instrumentedMethod, TypeDescription instrumentedType, Assigner assigner, Assigner.Typing typing)
resolve in interface MethodCall.TargetHandlerimplementationTarget - The implementation target.invokedMethod - The method to be invoked.instrumentedMethod - The instrumented method.instrumentedType - The instrumented type. @return A stack manipulation that invokes the method.assigner - The assigner to use.typing - The typing to apply.public TypeDescription resolve(TypeDescription instrumentedType, MethodDescription instrumentedMethod)
resolve in interface MethodCall.TargetHandlerinstrumentedType - The instrumented type.instrumentedMethod - The instrumented method.public InstrumentedType prepare(InstrumentedType instrumentedType)
prepare in interface InstrumentedType.PrepareableinstrumentedType - The instrumented type in its current form.Copyright © 2014–2018. All rights reserved.