@HashCodeAndEqualsPlugin.Enhance protected static class FieldProxy.Binder.FieldSetter extends java.lang.Object implements Implementation
| Modifier and Type | Class and Description |
|---|---|
protected class |
FieldProxy.Binder.FieldSetter.Appender
A byte code appender for a setter method.
|
Implementation.Composable, Implementation.Compound, Implementation.Context, Implementation.Simple, Implementation.SpecialMethodInvocation, Implementation.Target| Modifier and Type | Field and Description |
|---|---|
private Assigner |
assigner
The assigner to use.
|
private FieldDescription |
fieldDescription
The field that is being accessed.
|
private MethodAccessorFactory |
methodAccessorFactory
The accessed type's method accessor factory.
|
| Modifier | Constructor and Description |
|---|---|
protected |
FieldSetter(FieldDescription fieldDescription,
Assigner assigner,
MethodAccessorFactory methodAccessorFactory)
Creates a new setter implementation.
|
| Modifier and Type | Method and Description |
|---|---|
ByteCodeAppender |
appender(Implementation.Target implementationTarget)
Creates a byte code appender that determines the implementation of the instrumented type's methods.
|
InstrumentedType |
prepare(InstrumentedType instrumentedType)
Prepares a given instrumented type.
|
private final FieldDescription fieldDescription
private final Assigner assigner
private final MethodAccessorFactory methodAccessorFactory
protected FieldSetter(FieldDescription fieldDescription, Assigner assigner, MethodAccessorFactory methodAccessorFactory)
fieldDescription - The field that is being accessed.assigner - The assigner to use.methodAccessorFactory - The accessed type's method accessor factory.public InstrumentedType prepare(InstrumentedType instrumentedType)
prepare in interface InstrumentedType.PrepareableinstrumentedType - The instrumented type in its current form.public ByteCodeAppender appender(Implementation.Target implementationTarget)
appender in interface ImplementationimplementationTarget - The target of the current implementation.InstrumentedType.Prepareable.prepare(InstrumentedType).