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.Generic 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.Generic fieldType)
Forwarding.PreparationHandler
prepare
in interface Forwarding.PreparationHandler
instrumentedType
- 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.PreparationHandler
loadFieldOwner
in interface Forwarding.PreparationHandler
Copyright © 2014–2016. All rights reserved.