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 java.lang.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 Classes Modifier and Type Class Description protected static class
TargetMethodAnnotationDrivenBinder.DelegationProcessor.Handler.Unbound.DefaultArgument
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 java.lang.annotation.Annotation>, TargetMethodAnnotationDrivenBinder.DelegationProcessor.Handler.Unbound
-
-
Field Summary
Fields Modifier and Type Field Description private ParameterDescription
target
The target parameter being handled.private Assigner.Typing
typing
The typing to apply.
-
Constructor Summary
Constructors Modifier Constructor Description protected
Unbound(ParameterDescription target, Assigner.Typing typing)
Creates a new unbound handler.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MethodDelegationBinder.ParameterBinding<?>
bind(MethodDescription source, Implementation.Target implementationTarget, Assigner assigner)
Handles a parameter binding.boolean
isBound()
Indicates if this handler was explicitly bound.
-
-
-
Field Detail
-
target
private final ParameterDescription target
The target parameter being handled.
-
typing
private final Assigner.Typing typing
The typing to apply.
-
-
Constructor Detail
-
Unbound
protected Unbound(ParameterDescription target, Assigner.Typing typing)
Creates a new unbound handler.- Parameters:
target
- The target parameter being handled.typing
- The typing to apply.
-
-
Method Detail
-
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.
-
-