Class FieldProxy.Binder.InstanceFieldConstructor
- java.lang.Object
-
- net.bytebuddy.implementation.bind.annotation.FieldProxy.Binder.InstanceFieldConstructor
-
- All Implemented Interfaces:
InstrumentedType.Prepareable
,Implementation
- Enclosing class:
- FieldProxy.Binder
@Enhance protected static class FieldProxy.Binder.InstanceFieldConstructor extends java.lang.Object implements Implementation
Represents an implementation for implementing a proxy type constructor when a non-static field is accessed.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
FieldProxy.Binder.InstanceFieldConstructor.Appender
An appender for implementing anFieldProxy.Binder.InstanceFieldConstructor
.-
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 TypeDescription
instrumentedType
The instrumented type from which a field is to be accessed.
-
Constructor Summary
Constructors Modifier Constructor Description protected
InstanceFieldConstructor(TypeDescription instrumentedType)
Creates a new implementation for implementing a field accessor proxy's constructor when accessing a non-static field.
-
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
-
instrumentedType
private final TypeDescription instrumentedType
The instrumented type from which a field is to be accessed.
-
-
Constructor Detail
-
InstanceFieldConstructor
protected InstanceFieldConstructor(TypeDescription instrumentedType)
Creates a new implementation for implementing a field accessor proxy's constructor when accessing a non-static field.- Parameters:
instrumentedType
- The instrumented type from which a field is to be accessed.
-
-
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)
.
-
-