public static class Forwarding.PreparationHandler.ForStaticInstance extends Object implements Forwarding.PreparationHandler
static field.Forwarding.PreparationHandler.ForInstanceField, Forwarding.PreparationHandler.ForStaticField, Forwarding.PreparationHandler.ForStaticInstance| Constructor and Description |
|---|
ForStaticInstance(Object target)
Creates a new preparation handler for an explicit instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
int |
hashCode() |
StackManipulation |
loadFieldOwner()
Creates a stack manipulation for loading the field owner onto the operand stack.
|
InstrumentedType |
prepare(InstrumentedType instrumentedType,
String fieldName,
TypeDescription fieldType)
Prepares the instrumented type.
|
String |
toString() |
public ForStaticInstance(Object target)
target - The target of the delegation.public InstrumentedType prepare(InstrumentedType instrumentedType, String fieldName, TypeDescription fieldType)
Forwarding.PreparationHandlerprepare in interface Forwarding.PreparationHandlerinstrumentedType - The instrumented type to prepare.fieldName - The name of the field in which the delegate should be stored.fieldType - The type of the field.public StackManipulation loadFieldOwner()
Forwarding.PreparationHandlerloadFieldOwner in interface Forwarding.PreparationHandlerCopyright © 2014–2015. All rights reserved.