public static class MethodCall.TargetHandler.ForValue extends Object implements MethodCall.TargetHandler
MethodCall.TargetHandler.ForConstructingInvocation, MethodCall.TargetHandler.ForField, MethodCall.TargetHandler.ForMethodParameter, MethodCall.TargetHandler.ForSelfOrStaticInvocation, MethodCall.TargetHandler.ForValue| Modifier | Constructor and Description |
|---|---|
protected |
ForValue(Object target,
TypeDescription.Generic fieldType)
Creates a new target handler for a static field.
|
| Modifier and Type | Method and Description |
|---|---|
InstrumentedType |
prepare(InstrumentedType instrumentedType)
Prepares a given instrumented type.
|
StackManipulation |
resolve(MethodDescription invokedMethod,
MethodDescription instrumentedMethod,
TypeDescription instrumentedType,
Assigner assigner,
Assigner.Typing typing)
Creates a stack manipulation that represents the method's invocation.
|
protected ForValue(Object target, TypeDescription.Generic fieldType)
target - The target on which the method is to be invoked.fieldType - The type of the field.public StackManipulation resolve(MethodDescription invokedMethod, MethodDescription instrumentedMethod, TypeDescription instrumentedType, Assigner assigner, Assigner.Typing typing)
MethodCall.TargetHandlerresolve in interface MethodCall.TargetHandlerinvokedMethod - 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 InstrumentedType prepare(InstrumentedType instrumentedType)
InstrumentedType.Prepareableprepare in interface InstrumentedType.PrepareableinstrumentedType - The instrumented type in its current form.Copyright © 2014–2017. All rights reserved.