public static enum FieldSetterHandle.Binder extends Enum<FieldSetterHandle.Binder> implements TargetMethodAnnotationDrivenBinder.ParameterBinder<FieldSetterHandle>
FieldSetterHandle
annotation.Modifier and Type | Class and Description |
---|---|
protected static class |
FieldSetterHandle.Binder.Delegate
A delegate implementation for the
FieldSetterHandle.Binder . |
TargetMethodAnnotationDrivenBinder.ParameterBinder.ForFieldBinding<S extends Annotation>, TargetMethodAnnotationDrivenBinder.ParameterBinder.ForFixedValue<S extends Annotation>
Enum Constant and Description |
---|
INSTANCE
The singleton instance.
|
DEFAULTS
Modifier and Type | Method and Description |
---|---|
MethodDelegationBinder.ParameterBinding<?> |
bind(AnnotationDescription.Loadable<FieldSetterHandle> annotation,
MethodDescription source,
ParameterDescription target,
Implementation.Target implementationTarget,
Assigner assigner,
Assigner.Typing typing)
Creates a parameter binding for the given target parameter.
|
Class<FieldSetterHandle> |
getHandledType()
The annotation type that is handled by this parameter binder.
|
static FieldSetterHandle.Binder |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FieldSetterHandle.Binder[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FieldSetterHandle.Binder INSTANCE
public static FieldSetterHandle.Binder[] values()
for (FieldSetterHandle.Binder c : FieldSetterHandle.Binder.values()) System.out.println(c);
public static FieldSetterHandle.Binder valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic Class<FieldSetterHandle> getHandledType()
getHandledType
in interface TargetMethodAnnotationDrivenBinder.ParameterBinder<FieldSetterHandle>
Annotation.annotationType()
handled by this parameter binder.public MethodDelegationBinder.ParameterBinding<?> bind(AnnotationDescription.Loadable<FieldSetterHandle> annotation, MethodDescription source, ParameterDescription target, Implementation.Target implementationTarget, Assigner assigner, Assigner.Typing typing)
bind
in interface TargetMethodAnnotationDrivenBinder.ParameterBinder<FieldSetterHandle>
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 the source
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.Copyright © 2014–2024. All rights reserved.