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 MethodDescriptionThe candidate method.A list of handlers for each parameter.private final Assigner.TypingThe typing to apply. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRecord(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:
bindin 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 thetargetmethod.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
sourcemethod to thetargetmethod.
-
toString
-