T
- The annotation type of a given handler.@HashCodeAndEqualsPlugin.Enhance public static class TargetMethodAnnotationDrivenBinder.DelegationProcessor.Handler.Bound<T extends java.lang.annotation.Annotation> extends java.lang.Object implements TargetMethodAnnotationDrivenBinder.DelegationProcessor.Handler
TargetMethodAnnotationDrivenBinder.DelegationProcessor.Handler.Bound<T extends java.lang.annotation.Annotation>, TargetMethodAnnotationDrivenBinder.DelegationProcessor.Handler.Unbound
Modifier and Type | Field and Description |
---|---|
private AnnotationDescription.Loadable<T> |
annotation
The annotation value that lead to the binding of this handler.
|
private TargetMethodAnnotationDrivenBinder.ParameterBinder<T> |
parameterBinder
The parameter binder that is actually responsible for binding the parameter.
|
private ParameterDescription |
target
The target parameter being handled.
|
private Assigner.Typing |
typing
The typing to apply.
|
Modifier | Constructor and Description |
---|---|
protected |
Bound(ParameterDescription target,
TargetMethodAnnotationDrivenBinder.ParameterBinder<T> parameterBinder,
AnnotationDescription.Loadable<T> annotation,
Assigner.Typing typing)
Creates a new bound handler.
|
Modifier and Type | Method and Description |
---|---|
MethodDelegationBinder.ParameterBinding<?> |
bind(MethodDescription source,
Implementation.Target implementationTarget,
Assigner assigner)
Handles a parameter binding.
|
boolean |
isBound()
Indicates if this handler was explicitly bound.
|
protected static TargetMethodAnnotationDrivenBinder.DelegationProcessor.Handler |
of(ParameterDescription target,
TargetMethodAnnotationDrivenBinder.ParameterBinder<?> parameterBinder,
AnnotationDescription annotation,
Assigner.Typing typing)
Creates a handler for a given annotation.
|
private final ParameterDescription target
private final TargetMethodAnnotationDrivenBinder.ParameterBinder<T extends java.lang.annotation.Annotation> parameterBinder
private final AnnotationDescription.Loadable<T extends java.lang.annotation.Annotation> annotation
private final Assigner.Typing typing
protected Bound(ParameterDescription target, TargetMethodAnnotationDrivenBinder.ParameterBinder<T> parameterBinder, AnnotationDescription.Loadable<T> annotation, Assigner.Typing typing)
target
- The target parameter being handled.parameterBinder
- The parameter binder that is actually responsible for binding the parameter.annotation
- The annotation value that lead to the binding of this handler.typing
- The typing to apply.protected static TargetMethodAnnotationDrivenBinder.DelegationProcessor.Handler of(ParameterDescription target, TargetMethodAnnotationDrivenBinder.ParameterBinder<?> parameterBinder, AnnotationDescription annotation, Assigner.Typing typing)
target
- The target parameter being handled.parameterBinder
- The parameter binder that should process an annotation.annotation
- An annotation instance that can be understood by this parameter binder.typing
- The typing to apply.public boolean isBound()
isBound
in interface TargetMethodAnnotationDrivenBinder.DelegationProcessor.Handler
true
if this handler was explicitly bound.public MethodDelegationBinder.ParameterBinding<?> bind(MethodDescription source, Implementation.Target implementationTarget, Assigner assigner)
bind
in interface TargetMethodAnnotationDrivenBinder.DelegationProcessor.Handler
source
- The intercepted source method.implementationTarget
- The target of the current implementation.assigner
- The assigner to use.