Class FieldProxy.Binder.FieldGetter
- java.lang.Object
-
- net.bytebuddy.implementation.bind.annotation.FieldProxy.Binder.FieldGetter
-
- All Implemented Interfaces:
InstrumentedType.Prepareable
,Implementation
- Enclosing class:
- FieldProxy.Binder
@Enhance protected static class FieldProxy.Binder.FieldGetter extends java.lang.Object implements Implementation
Implementation for a getter method.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
FieldProxy.Binder.FieldGetter.Appender
A byte code appender for a getter method.-
Nested classes/interfaces inherited from interface net.bytebuddy.implementation.Implementation
Implementation.Composable, Implementation.Compound, Implementation.Context, Implementation.Simple, Implementation.SpecialMethodInvocation, Implementation.Target
-
-
Field Summary
Fields Modifier and Type Field 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.
-
Constructor Summary
Constructors Modifier Constructor Description protected
FieldGetter(FieldDescription fieldDescription, Assigner assigner, MethodAccessorFactory methodAccessorFactory)
Creates a new getter implementation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Field Detail
-
fieldDescription
private final FieldDescription fieldDescription
The field that is being accessed.
-
assigner
private final Assigner assigner
The assigner to use.
-
methodAccessorFactory
private final MethodAccessorFactory methodAccessorFactory
The accessed type's method accessor factory.
-
-
Constructor Detail
-
FieldGetter
protected FieldGetter(FieldDescription fieldDescription, Assigner assigner, MethodAccessorFactory methodAccessorFactory)
Creates a new getter implementation.- Parameters:
fieldDescription
- The field that is being accessed.assigner
- The assigner to use.methodAccessorFactory
- The accessed type's method accessor factory.
-
-
Method Detail
-
prepare
public InstrumentedType prepare(InstrumentedType instrumentedType)
Prepares a given instrumented type.- Specified by:
prepare
in interfaceInstrumentedType.Prepareable
- Parameters:
instrumentedType
- The instrumented type in its current form.- Returns:
- The prepared instrumented type.
-
appender
public ByteCodeAppender appender(Implementation.Target implementationTarget)
Creates a byte code appender that determines the implementation of the instrumented type's methods.- Specified by:
appender
in 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)
.
-
-