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 java.lang.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
Fields Modifier and Type Field Description private MethodDescription.InDefinedShapegetterMethodThe getter method.private MethodDescription.InDefinedShapesetterMethodThe setter method.
-
Constructor Summary
Constructors Modifier Constructor Description protectedSimplex(MethodDescription.InDefinedShape getterMethod, MethodDescription.InDefinedShape setterMethod)Creates a simplex factory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FieldProxy.Binder.FieldResolverresolve(TypeDescription parameterType, FieldDescription fieldDescription)Creates a field resolver.
-
-
-
Field Detail
-
getterMethod
private final MethodDescription.InDefinedShape getterMethod
The getter method.
-
setterMethod
private final MethodDescription.InDefinedShape setterMethod
The setter method.
-
-
Constructor Detail
-
Simplex
protected Simplex(MethodDescription.InDefinedShape getterMethod, MethodDescription.InDefinedShape setterMethod)
Creates a simplex factory.- Parameters:
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:
resolvein interfaceFieldProxy.Binder.FieldResolver.Factory- Parameters:
parameterType- The type of the annotated parameter.fieldDescription- The field being proxied.- Returns:
- An appropriate field resolver.
-
-