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 java.lang.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
Fields Modifier and Type Field Description private MethodDescriptioncandidateThe candidate method.private java.util.List<TargetMethodAnnotationDrivenBinder.DelegationProcessor.Handler>handlersA list of handlers for each parameter.private Assigner.TypingtypingThe typing to apply.
-
Constructor Summary
Constructors Modifier Constructor Description protectedRecord(MethodDescription candidate, java.util.List<TargetMethodAnnotationDrivenBinder.DelegationProcessor.Handler> handlers, Assigner.Typing typing)Creates a default compiled method delegation binder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MethodDelegationBinder.MethodBindingbind(Implementation.Target implementationTarget, MethodDescription source, MethodDelegationBinder.TerminationHandler terminationHandler, MethodDelegationBinder.MethodInvoker methodInvoker, Assigner assigner)Attempts a binding of a source method to this compiled target.java.lang.StringtoString()
-
-
-
Field Detail
-
candidate
private final MethodDescription candidate
The candidate method.
-
handlers
private final java.util.List<TargetMethodAnnotationDrivenBinder.DelegationProcessor.Handler> handlers
A list of handlers for each parameter.
-
typing
private final Assigner.Typing typing
The typing to apply.
-
-
Constructor Detail
-
Record
protected Record(MethodDescription candidate, java.util.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 Detail
-
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
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-