Class TargetMethodAnnotationDrivenBinder.DelegationProcessor.Handler.Unbound
java.lang.Object
net.bytebuddy.implementation.bind.annotation.TargetMethodAnnotationDrivenBinder.DelegationProcessor.Handler.Unbound
- All Implemented Interfaces:
TargetMethodAnnotationDrivenBinder.DelegationProcessor.Handler
- Enclosing interface:
TargetMethodAnnotationDrivenBinder.DelegationProcessor.Handler
@Enhance
public static class TargetMethodAnnotationDrivenBinder.DelegationProcessor.Handler.Unbound
extends Object
implements TargetMethodAnnotationDrivenBinder.DelegationProcessor.Handler
An unbound handler is a fallback for returning an illegal binding for parameters for which no parameter
binder could be located.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
A default implementation of anArgument
annotation.Nested classes/interfaces inherited from interface net.bytebuddy.implementation.bind.annotation.TargetMethodAnnotationDrivenBinder.DelegationProcessor.Handler
TargetMethodAnnotationDrivenBinder.DelegationProcessor.Handler.Bound<T extends Annotation>, TargetMethodAnnotationDrivenBinder.DelegationProcessor.Handler.Unbound
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ParameterDescription
The target parameter being handled.private final Assigner.Typing
The typing to apply. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Unbound
(ParameterDescription target, Assigner.Typing typing) Creates a new unbound handler. -
Method Summary
Modifier and TypeMethodDescriptionbind
(MethodDescription source, Implementation.Target implementationTarget, Assigner assigner) Handles a parameter binding.boolean
isBound()
Indicates if this handler was explicitly bound.
-
Field Details
-
target
The target parameter being handled. -
typing
The typing to apply.
-
-
Constructor Details
-
Unbound
Creates a new unbound handler.- Parameters:
target
- The target parameter being handled.typing
- The typing to apply.
-
-
Method Details
-
isBound
public boolean isBound()Indicates if this handler was explicitly bound.- Specified by:
isBound
in interfaceTargetMethodAnnotationDrivenBinder.DelegationProcessor.Handler
- Returns:
true
if this handler was explicitly bound.
-
bind
public MethodDelegationBinder.ParameterBinding<?> bind(MethodDescription source, Implementation.Target implementationTarget, Assigner assigner) Handles a parameter binding.- Specified by:
bind
in interfaceTargetMethodAnnotationDrivenBinder.DelegationProcessor.Handler
- Parameters:
source
- The intercepted source method.implementationTarget
- The target of the current implementation.assigner
- The assigner to use.- Returns:
- A parameter binding that reflects the given arguments.
-