Class FieldValue.Binder.Delegate
java.lang.Object
net.bytebuddy.implementation.bind.annotation.TargetMethodAnnotationDrivenBinder.ParameterBinder.ForFieldBinding<FieldValue>
net.bytebuddy.implementation.bind.annotation.FieldValue.Binder.Delegate
- All Implemented Interfaces:
TargetMethodAnnotationDrivenBinder.ParameterBinder<FieldValue>
- Enclosing class:
FieldValue.Binder
protected static class FieldValue.Binder.Delegate
extends TargetMethodAnnotationDrivenBinder.ParameterBinder.ForFieldBinding<FieldValue>
A delegate implementation for the
FieldValue.Binder
.-
Nested Class Summary
Nested classes/interfaces inherited from interface net.bytebuddy.implementation.bind.annotation.TargetMethodAnnotationDrivenBinder.ParameterBinder
TargetMethodAnnotationDrivenBinder.ParameterBinder.ForFieldBinding<S extends Annotation>, TargetMethodAnnotationDrivenBinder.ParameterBinder.ForFixedValue<S extends Annotation>
-
Field Summary
Fields inherited from class net.bytebuddy.implementation.bind.annotation.TargetMethodAnnotationDrivenBinder.ParameterBinder.ForFieldBinding
BEAN_PROPERTY
Fields inherited from interface net.bytebuddy.implementation.bind.annotation.TargetMethodAnnotationDrivenBinder.ParameterBinder
DEFAULTS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected MethodDelegationBinder.ParameterBinding
<?> bind
(FieldDescription fieldDescription, AnnotationDescription.Loadable<FieldValue> annotation, MethodDescription source, ParameterDescription target, Implementation.Target implementationTarget, Assigner assigner) Creates a parameter binding for the given target parameter.protected TypeDescription
declaringType
(AnnotationDescription.Loadable<FieldValue> annotation) Extracts the declaring type from an annotation.protected String
fieldName
(AnnotationDescription.Loadable<FieldValue> annotation) Extracts the field name from an annotation.The annotation type that is handled by this parameter binder.Methods inherited from class net.bytebuddy.implementation.bind.annotation.TargetMethodAnnotationDrivenBinder.ParameterBinder.ForFieldBinding
bind
-
Constructor Details
-
Delegate
protected Delegate()
-
-
Method Details
-
getHandledType
The annotation type that is handled by this parameter binder.- Returns:
- The
Annotation.annotationType()
handled by this parameter binder.
-
fieldName
Description copied from class:TargetMethodAnnotationDrivenBinder.ParameterBinder.ForFieldBinding
Extracts the field name from an annotation.- Specified by:
fieldName
in classTargetMethodAnnotationDrivenBinder.ParameterBinder.ForFieldBinding<FieldValue>
- Parameters:
annotation
- The annotation from which to extract the field name.- Returns:
- The field name defined by the handled annotation.
-
declaringType
Description copied from class:TargetMethodAnnotationDrivenBinder.ParameterBinder.ForFieldBinding
Extracts the declaring type from an annotation.- Specified by:
declaringType
in classTargetMethodAnnotationDrivenBinder.ParameterBinder.ForFieldBinding<FieldValue>
- Parameters:
annotation
- The annotation from which to extract the declaring type.- Returns:
- The declaring type defined by the handled annotation.
-
bind
protected MethodDelegationBinder.ParameterBinding<?> bind(FieldDescription fieldDescription, AnnotationDescription.Loadable<FieldValue> annotation, MethodDescription source, ParameterDescription target, Implementation.Target implementationTarget, Assigner assigner) Description copied from class:TargetMethodAnnotationDrivenBinder.ParameterBinder.ForFieldBinding
Creates a parameter binding for the given target parameter.- Specified by:
bind
in classTargetMethodAnnotationDrivenBinder.ParameterBinder.ForFieldBinding<FieldValue>
- Parameters:
fieldDescription
- The field for which this binder binds a value.annotation
- The annotation that was cause for the delegation to this argument binder.source
- The intercepted source method.target
- Tge target parameter that is subject to be bound to intercepting thesource
method.implementationTarget
- The target of the current implementation that is subject to this binding.assigner
- An assigner that can be used for applying the binding.- Returns:
- A parameter binding for the requested target method parameter.
-