public static class MethodCall.TargetHandler.ForInstanceField extends Object implements MethodCall.TargetHandler
MethodCall.TargetHandler.ForConstructingInvocation, MethodCall.TargetHandler.ForInstanceField, MethodCall.TargetHandler.ForSelfOrStaticInvocation, MethodCall.TargetHandler.ForStaticField| Constructor and Description |
|---|
ForInstanceField(String fieldName,
TypeDescription fieldType)
Creates a new target handler for storing a method invocation target in an
instance 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 methodDescription,
TypeDescription instrumentedType)
Creates a stack manipulation that represents the method's invocation.
|
String |
toString() |
public ForInstanceField(String fieldName, TypeDescription fieldType)
fieldName - The name of the field.fieldType - The type of the field.public StackManipulation resolve(MethodDescription methodDescription, TypeDescription instrumentedType)
MethodCall.TargetHandlerresolve in interface MethodCall.TargetHandlermethodDescription - The method to be invoked.instrumentedType - The instrumented type.public InstrumentedType prepare(InstrumentedType instrumentedType)
MethodCall.TargetHandlerprepare in interface MethodCall.TargetHandlerinstrumentedType - The instrumented type.Copyright © 2014–2015. All rights reserved.