Class FieldProxy.Binder.FieldResolver.Factory.Simplex
java.lang.Object
net.bytebuddy.implementation.bind.annotation.FieldProxy.Binder.FieldResolver.Factory.Simplex
- All Implemented Interfaces:
FieldProxy.Binder.FieldResolver.Factory
- Enclosing interface:
- FieldProxy.Binder.FieldResolver.Factory
@Enhance
public static class FieldProxy.Binder.FieldResolver.Factory.Simplex
extends Object
implements FieldProxy.Binder.FieldResolver.Factory
A simplex factory where field getters and setters both have their own type.
-
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 MethodDescription.InDefinedShape
The setter method. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Simplex
(MethodDescription.InDefinedShape getterMethod, MethodDescription.InDefinedShape setterMethod) Creates a simplex factory. -
Method Summary
Modifier and TypeMethodDescriptionresolve
(TypeDescription parameterType, FieldDescription fieldDescription) Creates a field resolver.
-
Field Details
-
getterMethod
The getter method. -
setterMethod
The setter method.
-
-
Constructor Details
-
Simplex
protected Simplex(MethodDescription.InDefinedShape getterMethod, MethodDescription.InDefinedShape setterMethod) Creates a simplex factory.- Parameters:
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.
-