Enum Class FieldValue.Binder
- All Implemented Interfaces:
Serializable
,Comparable<FieldValue.Binder>
,Constable
,TargetMethodAnnotationDrivenBinder.ParameterBinder<FieldValue>
- Enclosing class:
FieldValue
public static enum FieldValue.Binder
extends Enum<FieldValue.Binder>
implements TargetMethodAnnotationDrivenBinder.ParameterBinder<FieldValue>
Binds a
FieldValue
annotation.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
A delegate implementation for theFieldValue.Binder
.Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
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>
-
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final MethodDescription.InDefinedShape
The annotation method that for the defining type.private final TargetMethodAnnotationDrivenBinder.ParameterBinder
<FieldValue> A delegate parameter binder responsible for binding the parameter.private static final MethodDescription.InDefinedShape
The annotation method for the field's name.Fields inherited from interface net.bytebuddy.implementation.bind.annotation.TargetMethodAnnotationDrivenBinder.ParameterBinder
DEFAULTS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbind
(AnnotationDescription.Loadable<FieldValue> annotation, MethodDescription source, ParameterDescription target, Implementation.Target implementationTarget, Assigner assigner, Assigner.Typing typing) Creates a parameter binding for the given target parameter.The annotation type that is handled by this parameter binder.static FieldValue.Binder
Returns the enum constant of this class with the specified name.static FieldValue.Binder[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
The singleton instance.
-
-
Field Details
-
DECLARING_TYPE
The annotation method that for the defining type. -
FIELD_NAME
The annotation method for the field's name. -
delegate
A delegate parameter binder responsible for binding the parameter.
-
-
Constructor Details
-
Binder
Creates a new binder for aFieldValue
.- Parameters:
delegate
- A delegate parameter binder responsible for binding the parameter.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getHandledType
The annotation type that is handled by this parameter binder.- Specified by:
getHandledType
in interfaceTargetMethodAnnotationDrivenBinder.ParameterBinder<FieldValue>
- Returns:
- The
Annotation.annotationType()
handled by this parameter binder.
-
bind
public MethodDelegationBinder.ParameterBinding<?> bind(AnnotationDescription.Loadable<FieldValue> annotation, MethodDescription source, ParameterDescription target, Implementation.Target implementationTarget, Assigner assigner, Assigner.Typing typing) Creates a parameter binding for the given target parameter.- Specified by:
bind
in interfaceTargetMethodAnnotationDrivenBinder.ParameterBinder<FieldValue>
- Parameters:
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.typing
- The typing to apply.- Returns:
- A parameter binding for the requested target method parameter.
-