public static class MethodCall.TargetHandler.ForStaticField extends Object implements MethodCall.TargetHandler
MethodCall.TargetHandler.ForConstructingInvocation, MethodCall.TargetHandler.ForInstanceField, MethodCall.TargetHandler.ForMethodParameter, MethodCall.TargetHandler.ForSelfOrStaticInvocation, MethodCall.TargetHandler.ForStaticField| Constructor and Description |
|---|
ForStaticField(Object target)
Creates a new target handler for a static field.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
int |
hashCode() |
InstrumentedType |
prepare(InstrumentedType instrumentedType)
Prepares the instrumented type in order to allow for the represented invocation.
|
StackManipulation |
resolve(MethodDescription invokedMethod,
MethodDescription instrumentedMethod,
TypeDescription instrumentedType,
Assigner assigner,
Assigner.Typing typing)
Creates a stack manipulation that represents the method's invocation.
|
String |
toString() |
public ForStaticField(Object target)
target - The target on which the method is to be invoked.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)
MethodCall.TargetHandlerprepare in interface MethodCall.TargetHandlerinstrumentedType - The instrumented type.Copyright © 2014–2016. All rights reserved.