@HashCodeAndEqualsPlugin.Enhance(includeSyntheticFields=true) protected static class FieldProxy.Binder.AccessorProxy extends StackManipulation.AbstractBase implements AuxiliaryType
AuxiliaryType.NamingStrategy, AuxiliaryType.SignatureRelevantStackManipulation.AbstractBase, StackManipulation.Compound, StackManipulation.Illegal, StackManipulation.Simple, StackManipulation.Size, StackManipulation.Trivial| Modifier and Type | Field and Description |
|---|---|
protected static String |
FIELD_NAME
The name of the field that stores the accessed instance if any.
|
DEFAULT_TYPE_MODIFIER| Modifier | Constructor and Description |
|---|---|
protected |
AccessorProxy(FieldDescription fieldDescription,
TypeDescription instrumentedType,
FieldProxy.Binder.FieldResolver fieldResolver,
Assigner assigner,
boolean serializableProxy) |
| Modifier and Type | Method and Description |
|---|---|
StackManipulation.Size |
apply(MethodVisitor methodVisitor,
Implementation.Context implementationContext)
Applies the stack manipulation that is described by this instance.
|
String |
getSuffix()
Produces a suffix that gives this auxiliary type a stable name.
|
DynamicType |
make(String auxiliaryTypeName,
ClassFileVersion classFileVersion,
MethodAccessorFactory methodAccessorFactory)
Creates a new auxiliary type.
|
isValidprotected static final String FIELD_NAME
protected AccessorProxy(FieldDescription fieldDescription, TypeDescription instrumentedType, FieldProxy.Binder.FieldResolver fieldResolver, Assigner assigner, boolean serializableProxy)
fieldDescription - The field that is being accessed.instrumentedType - The type which is accessed.fieldResolver - The field resolver to use.assigner - The assigner to use.serializableProxy - true if the generated proxy should be serializable.public String getSuffix()
getSuffix in interface AuxiliaryTypepublic DynamicType make(String auxiliaryTypeName, ClassFileVersion classFileVersion, MethodAccessorFactory methodAccessorFactory)
make in interface AuxiliaryTypeauxiliaryTypeName - The fully qualified binary name for this auxiliary type. The type should be in
the same package than the instrumented type this auxiliary type is providing services
to in order to allow package-private access.classFileVersion - The class file version the auxiliary class should be written in.methodAccessorFactory - A factory for accessor methods.public StackManipulation.Size apply(MethodVisitor methodVisitor, Implementation.Context implementationContext)
apply in interface StackManipulationmethodVisitor - The method visitor used to write the method implementation to.implementationContext - The context of the current implementation.Copyright © 2014–2025. All rights reserved.