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 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
FieldsModifier and TypeFieldDescriptionprivate final MethodDescription.InDefinedShape
The getter method.private final TypeDescription
The type of the accessor proxy.private final MethodDescription.InDefinedShape
The setter method. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Duplex
(TypeDescription proxyType, MethodDescription.InDefinedShape getterMethod, MethodDescription.InDefinedShape setterMethod) Creates a new duplex factory. -
Method Summary
Modifier and TypeMethodDescriptionresolve
(TypeDescription parameterType, FieldDescription fieldDescription) Creates a field resolver.
-
Field Details
-
proxyType
The type of the accessor proxy. -
getterMethod
The getter method. -
setterMethod
The setter method.
-
-
Constructor Details
-
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 Details
-
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.
-