Class TargetMethodAnnotationDrivenBinder.Record
java.lang.Object
net.bytebuddy.implementation.bind.annotation.TargetMethodAnnotationDrivenBinder.Record
- All Implemented Interfaces:
MethodDelegationBinder.Record
- Enclosing class:
- TargetMethodAnnotationDrivenBinder
@Enhance
protected static class TargetMethodAnnotationDrivenBinder.Record
extends Object
implements MethodDelegationBinder.Record
A compiled record of a target method annotation-driven binder.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.bytebuddy.implementation.bind.MethodDelegationBinder.Record
MethodDelegationBinder.Record.Illegal
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final MethodDescription
The candidate method.A list of handlers for each parameter.private final Assigner.Typing
The typing to apply. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Record
(MethodDescription candidate, List<TargetMethodAnnotationDrivenBinder.DelegationProcessor.Handler> handlers, Assigner.Typing typing) Creates a default compiled method delegation binder. -
Method Summary
Modifier and TypeMethodDescriptionbind
(Implementation.Target implementationTarget, MethodDescription source, MethodDelegationBinder.TerminationHandler terminationHandler, MethodDelegationBinder.MethodInvoker methodInvoker, Assigner assigner) Attempts a binding of a source method to this compiled target.toString()
-
Field Details
-
candidate
The candidate method. -
handlers
A list of handlers for each parameter. -
typing
The typing to apply.
-
-
Constructor Details
-
Record
protected Record(MethodDescription candidate, List<TargetMethodAnnotationDrivenBinder.DelegationProcessor.Handler> handlers, Assigner.Typing typing) Creates a default compiled method delegation binder.- Parameters:
candidate
- The candidate method.handlers
- A list of handlers for each parameter.typing
- The typing to apply.
-
-
Method Details
-
bind
public MethodDelegationBinder.MethodBinding bind(Implementation.Target implementationTarget, MethodDescription source, MethodDelegationBinder.TerminationHandler terminationHandler, MethodDelegationBinder.MethodInvoker methodInvoker, Assigner assigner) Attempts a binding of a source method to this compiled target.- Specified by:
bind
in interfaceMethodDelegationBinder.Record
- Parameters:
implementationTarget
- The target of the current implementation onto which this binding is to be applied.source
- The method that is to be bound to thetarget
method.terminationHandler
- The termination handler to apply.methodInvoker
- The method invoker to use.assigner
- The assigner to use.- Returns:
- A binding representing this attempt to bind the
source
method to thetarget
method.
-
toString
-