Package | Description |
---|---|
net.bytebuddy.implementation |
The implementation package contains any logic for intercepting method calls.
|
net.bytebuddy.implementation.bind |
The types and classes of this package are responsible for binding a method call to calling another method.
|
net.bytebuddy.implementation.bind.annotation |
This package contains annotations, types and classes that are responsible for binding a method to calling another
method by interpreting annotations that indicate how a method should be bound to another method.
|
Modifier and Type | Field and Description |
---|---|
private MethodDelegationBinder.Record |
MethodDelegation.Appender.processor
The method delegation binder processor which is responsible for implementing the method delegation.
|
Modifier and Type | Field and Description |
---|---|
private java.util.List<MethodDelegationBinder.Record> |
MethodDelegation.ImplementationDelegate.Compiled.ForStaticCall.records
The list of records to consider.
|
private java.util.List<MethodDelegationBinder.Record> |
MethodDelegation.ImplementationDelegate.Compiled.ForField.records
The records to consider for delegation.
|
private java.util.List<MethodDelegationBinder.Record> |
MethodDelegation.ImplementationDelegate.Compiled.ForMethodReturn.records
The records to consider for delegation.
|
private java.util.List<MethodDelegationBinder.Record> |
MethodDelegation.ImplementationDelegate.Compiled.ForConstruction.records
The records to consider for delegation.
|
private java.util.List<MethodDelegationBinder.Record> |
MethodDelegation.ImplementationDelegate.ForStaticMethod.records
The precompiled records.
|
private java.util.List<MethodDelegationBinder.Record> |
MethodDelegation.ImplementationDelegate.ForConstruction.records
The precompiled delegation records.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<MethodDelegationBinder.Record> |
MethodDelegation.ImplementationDelegate.Compiled.getRecords()
Returns a list of binding records to consider for delegation.
|
java.util.List<MethodDelegationBinder.Record> |
MethodDelegation.ImplementationDelegate.Compiled.ForStaticCall.getRecords()
Returns a list of binding records to consider for delegation.
|
java.util.List<MethodDelegationBinder.Record> |
MethodDelegation.ImplementationDelegate.Compiled.ForField.getRecords()
Returns a list of binding records to consider for delegation.
|
java.util.List<MethodDelegationBinder.Record> |
MethodDelegation.ImplementationDelegate.Compiled.ForMethodReturn.getRecords()
Returns a list of binding records to consider for delegation.
|
java.util.List<MethodDelegationBinder.Record> |
MethodDelegation.ImplementationDelegate.Compiled.ForConstruction.getRecords()
Returns a list of binding records to consider for delegation.
|
Constructor and Description |
---|
Appender(Implementation.Target implementationTarget,
MethodDelegationBinder.Record processor,
MethodDelegationBinder.TerminationHandler terminationHandler,
Assigner assigner,
MethodDelegation.ImplementationDelegate.Compiled compiled)
Creates a new appender for a method delegation.
|
Constructor and Description |
---|
ForConstruction(TypeDescription typeDescription,
java.util.List<MethodDelegationBinder.Record> records)
Creates a new compiled implementation delegate for a constructor delegation.
|
ForConstruction(TypeDescription typeDescription,
java.util.List<MethodDelegationBinder.Record> records)
Creates an implementation delegate for constructing a new instance.
|
ForField(FieldDescription fieldDescription,
java.util.List<MethodDelegationBinder.Record> records)
Creates a new compiled implementation delegate for a field delegation.
|
ForMethodReturn(MethodDescription methodDescription,
java.util.List<MethodDelegationBinder.Record> records)
Creates a new compiled implementation delegate for a field delegation.
|
ForStaticCall(java.util.List<MethodDelegationBinder.Record> records)
Creates a new compiled implementation delegate for a static method call.
|
ForStaticMethod(java.util.List<MethodDelegationBinder.Record> records)
Creates a new implementation delegate for a static method delegation.
|
Modifier and Type | Class and Description |
---|---|
static class |
MethodDelegationBinder.Processor
A helper class that allows to identify a best binding for a given type and source method choosing from a list of given
target methods by using a given
MethodDelegationBinder
and an MethodDelegationBinder.AmbiguityResolver . |
static class |
MethodDelegationBinder.Record.Illegal
A compiled method delegation binder that only yields illegal bindings.
|
Modifier and Type | Field and Description |
---|---|
private java.util.List<? extends MethodDelegationBinder.Record> |
MethodDelegationBinder.Processor.records
The delegation records to consider.
|
Modifier and Type | Method and Description |
---|---|
MethodDelegationBinder.Record |
MethodDelegationBinder.compile(MethodDescription candidate)
Compiles this method delegation binder for a target method.
|
Constructor and Description |
---|
Processor(java.util.List<? extends MethodDelegationBinder.Record> records,
MethodDelegationBinder.AmbiguityResolver ambiguityResolver,
MethodDelegationBinder.BindingResolver bindingResolver)
Creates a new processor.
|
Modifier and Type | Class and Description |
---|---|
protected static class |
TargetMethodAnnotationDrivenBinder.Record
A compiled record of a target method annotation-driven binder.
|
Modifier and Type | Method and Description |
---|---|
MethodDelegationBinder.Record |
TargetMethodAnnotationDrivenBinder.compile(MethodDescription candidate)
Compiles this method delegation binder for a target method.
|