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 TargetMethodAnnotationDrivenBinder.ParameterBinder
TargetMethodAnnotationDrivenBinder.ParameterBinder.ForFieldBinding<S>, TargetMethodAnnotationDrivenBinder.ParameterBinder.ForFixedValue<S> -
Field Summary
Fields inherited from class TargetMethodAnnotationDrivenBinder.ParameterBinder.ForFieldBinding
BEAN_PROPERTYFields inherited from interface 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 TypeDescriptiondeclaringType(AnnotationDescription.Loadable<FieldValue> annotation) Extracts the declaring type from an annotation.protected StringfieldName(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 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.ForFieldBindingExtracts the field name from an annotation.- Specified by:
fieldNamein 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.ForFieldBindingExtracts the declaring type from an annotation.- Specified by:
declaringTypein 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.ForFieldBindingCreates a parameter binding for the given target parameter.- Specified by:
bindin 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 thesourcemethod.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.
-