Class FieldProxy.Binder.FieldResolver.Factory.Duplex
- java.lang.Object
-
- net.bytebuddy.implementation.bind.annotation.FieldProxy.Binder.FieldResolver.Factory.Duplex
-
- All Implemented Interfaces:
FieldProxy.Binder.FieldResolver.Factory
- Enclosing interface:
- FieldProxy.Binder.FieldResolver.Factory
@Enhance public static class FieldProxy.Binder.FieldResolver.Factory.Duplex extends java.lang.Object implements FieldProxy.Binder.FieldResolver.Factory
A duplex factory for a type that both sets and gets a field value.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.implementation.bind.annotation.FieldProxy.Binder.FieldResolver.Factory
FieldProxy.Binder.FieldResolver.Factory.Duplex, FieldProxy.Binder.FieldResolver.Factory.Simplex
-
-
Field Summary
Fields Modifier and Type Field Description private MethodDescription.InDefinedShape
getterMethod
The getter method.private TypeDescription
proxyType
The type of the accessor proxy.private MethodDescription.InDefinedShape
setterMethod
The setter method.
-
Constructor Summary
Constructors Modifier Constructor Description protected
Duplex(TypeDescription proxyType, MethodDescription.InDefinedShape getterMethod, MethodDescription.InDefinedShape setterMethod)
Creates a new duplex factory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FieldProxy.Binder.FieldResolver
resolve(TypeDescription parameterType, FieldDescription fieldDescription)
Creates a field resolver.
-
-
-
Field Detail
-
proxyType
private final TypeDescription proxyType
The type of the accessor proxy.
-
getterMethod
private final MethodDescription.InDefinedShape getterMethod
The getter method.
-
setterMethod
private final MethodDescription.InDefinedShape setterMethod
The setter method.
-
-
Constructor Detail
-
Duplex
protected Duplex(TypeDescription proxyType, MethodDescription.InDefinedShape getterMethod, MethodDescription.InDefinedShape setterMethod)
Creates a new duplex factory.- Parameters:
proxyType
- The type of the accessor proxy.getterMethod
- The getter method.setterMethod
- The setter method.
-
-
Method Detail
-
resolve
public FieldProxy.Binder.FieldResolver resolve(TypeDescription parameterType, FieldDescription fieldDescription)
Creates a field resolver.- Specified by:
resolve
in interfaceFieldProxy.Binder.FieldResolver.Factory
- Parameters:
parameterType
- The type of the annotated parameter.fieldDescription
- The field being proxied.- Returns:
- An appropriate field resolver.
-
-