Class FieldProxy.Binder.FieldSetter
java.lang.Object
net.bytebuddy.implementation.bind.annotation.FieldProxy.Binder.FieldSetter
- All Implemented Interfaces:
InstrumentedType.Prepareable, Implementation
- Enclosing class:
FieldProxy.Binder
@Enhance
protected static class FieldProxy.Binder.FieldSetter
extends Object
implements Implementation
Implementation for a setter method.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classA byte code appender for a setter method.Nested classes/interfaces inherited from interface Implementation
Implementation.Composable, Implementation.Compound, Implementation.Context, Implementation.Simple, Implementation.SpecialMethodInvocation, Implementation.TargetNested classes/interfaces inherited from interface InstrumentedType.Prepareable
InstrumentedType.Prepareable.NoOp -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedFieldSetter(FieldDescription fieldDescription, Assigner assigner, MethodAccessorFactory methodAccessorFactory) Creates a new setter implementation. -
Method Summary
Modifier and TypeMethodDescriptionappender(Implementation.Target implementationTarget) Creates a byte code appender that determines the implementation of the instrumented type's methods.prepare(InstrumentedType instrumentedType) Prepares a given instrumented type.
-
Constructor Details
-
FieldSetter
protected FieldSetter(FieldDescription fieldDescription, Assigner assigner, MethodAccessorFactory methodAccessorFactory) Creates a new setter implementation.- Parameters:
fieldDescription- The field that is being accessed.assigner- The assigner to use.methodAccessorFactory- The accessed type's method accessor factory.
-
-
Method Details
-
prepare
Prepares a given instrumented type.- Specified by:
preparein interfaceInstrumentedType.Prepareable- Parameters:
instrumentedType- The instrumented type in its current form.- Returns:
- The prepared instrumented type.
-
appender
Creates a byte code appender that determines the implementation of the instrumented type's methods.- Specified by:
appenderin interfaceImplementation- Parameters:
implementationTarget- The target of the current implementation.- Returns:
- A byte code appender for implementing methods delegated to this implementation. This byte code appender
is also responsible for handling methods that were added by this implementation on the call to
InstrumentedType.Prepareable.prepare(InstrumentedType).
-