public static class MethodDelegation.InstrumentationDelegate.ForInstanceField extends Object implements MethodDelegation.InstrumentationDelegate
MethodDelegation.InstrumentationDelegate.ForConstruction, MethodDelegation.InstrumentationDelegate.ForInstanceField, MethodDelegation.InstrumentationDelegate.ForStaticField, MethodDelegation.InstrumentationDelegate.ForStaticMethod| Constructor and Description |
|---|
ForInstanceField(TypeDescription fieldType,
String fieldName)
Creates a new instance field instrumentation delegate.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
MethodDelegationBinder.MethodInvoker |
getMethodInvoker(TypeDescription instrumentedType)
Returns the method invoker responsible for invoking the delegation method.
|
StackManipulation |
getPreparingStackAssignment(TypeDescription instrumentedType)
Returns the stack manipulation responsible for preparing the instance representing the instrumentation.
|
int |
hashCode() |
InstrumentedType |
prepare(InstrumentedType instrumentedType)
Prepares the instrumented type.
|
String |
toString() |
public ForInstanceField(TypeDescription fieldType, String fieldName)
fieldType - A description of the type that is the target of the instrumentation and thus also the
field type.fieldName - The name of the field.public InstrumentedType prepare(InstrumentedType instrumentedType)
MethodDelegation.InstrumentationDelegateprepare in interface MethodDelegation.InstrumentationDelegateinstrumentedType - The instrumented type to be prepared.public StackManipulation getPreparingStackAssignment(TypeDescription instrumentedType)
MethodDelegation.InstrumentationDelegategetPreparingStackAssignment in interface MethodDelegation.InstrumentationDelegateinstrumentedType - A description of the instrumented type to which the instrumentation is applied.public MethodDelegationBinder.MethodInvoker getMethodInvoker(TypeDescription instrumentedType)
MethodDelegation.InstrumentationDelegategetMethodInvoker in interface MethodDelegation.InstrumentationDelegateinstrumentedType - The instrumented type to which the instrumentation is applied.Copyright © 2014. All rights reserved.