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 classA default implementation of anArgumentannotation.Nested classes/interfaces inherited from interface TargetMethodAnnotationDrivenBinder.DelegationProcessor.Handler
TargetMethodAnnotationDrivenBinder.DelegationProcessor.Handler.Bound<T>, TargetMethodAnnotationDrivenBinder.DelegationProcessor.Handler.Unbound -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ParameterDescriptionThe target parameter being handled.private final Assigner.TypingThe typing to apply. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedUnbound(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.booleanisBound()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:
isBoundin interfaceTargetMethodAnnotationDrivenBinder.DelegationProcessor.Handler- Returns:
trueif this handler was explicitly bound.
-
bind
public MethodDelegationBinder.ParameterBinding<?> bind(MethodDescription source, Implementation.Target implementationTarget, Assigner assigner) Handles a parameter binding.- Specified by:
bindin 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.
-