public static class MethodDelegation.ImplementationDelegate.ForStaticField extends Object implements MethodDelegation.ImplementationDelegate
MethodDelegation.ImplementationDelegate.ForConstruction, MethodDelegation.ImplementationDelegate.ForInstanceField, MethodDelegation.ImplementationDelegate.ForStaticField, MethodDelegation.ImplementationDelegate.ForStaticMethod
Modifier and Type | Field and Description |
---|---|
protected static String |
PREFIX
The name prefix for the
static field that is containing the delegation target. |
Constructor and Description |
---|
ForStaticField(Object delegate,
String fieldName)
Creates a new implementation for delegating to an instance that is stored in a
static field. |
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 implementation.
|
int |
hashCode() |
InstrumentedType |
prepare(InstrumentedType instrumentedType)
Prepares the instrumented type.
|
String |
toString() |
protected static final String PREFIX
static
field that is containing the delegation target.public InstrumentedType prepare(InstrumentedType instrumentedType)
MethodDelegation.ImplementationDelegate
prepare
in interface MethodDelegation.ImplementationDelegate
instrumentedType
- The instrumented type to be prepared.public StackManipulation getPreparingStackAssignment(TypeDescription instrumentedType)
MethodDelegation.ImplementationDelegate
getPreparingStackAssignment
in interface MethodDelegation.ImplementationDelegate
instrumentedType
- A description of the instrumented type to which the implementation is applied.public MethodDelegationBinder.MethodInvoker getMethodInvoker(TypeDescription instrumentedType)
MethodDelegation.ImplementationDelegate
getMethodInvoker
in interface MethodDelegation.ImplementationDelegate
instrumentedType
- The instrumented type to which the implementation is applied.Copyright © 2014–2016. All rights reserved.