Package | Description |
---|---|
net.bytebuddy.implementation |
The implementation package contains any logic for intercepting method calls.
|
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 | Method and Description |
---|---|
MethodDelegation |
MethodDelegation.appendParameterBinder(TargetMethodAnnotationDrivenBinder.ParameterBinder<?> parameterBinder)
Defines an parameter binder to be appended to the already defined parameter binders.
|
MethodDelegation |
MethodDelegation.defineParameterBinder(TargetMethodAnnotationDrivenBinder.ParameterBinder<?>... parameterBinder)
Defines a number of parameter binders to be appended to be used by this method delegation.
|
Constructor and Description |
---|
MethodDelegation(MethodDelegation.ImplementationDelegate implementationDelegate,
List<TargetMethodAnnotationDrivenBinder.ParameterBinder<?>> parameterBinders,
TargetMethodAnnotationDrivenBinder.DefaultsProvider defaultsProvider,
TargetMethodAnnotationDrivenBinder.TerminationHandler terminationHandler,
MethodDelegationBinder.AmbiguityResolver ambiguityResolver,
Assigner assigner,
MethodDelegation.MethodContainer methodContainer)
Creates a new method delegation.
|
Modifier and Type | Class and Description |
---|---|
static class |
AllArguments.Binder
A binder for handling the
AllArguments
annotation. |
static class |
Argument.Binder
A binder for handling the
Argument
annotation. |
static class |
Default.Binder
A binder for the
Default annotation. |
static class |
DefaultCall.Binder
A binder for handling the
DefaultCall
annotation. |
static class |
Empty.Binder
A binder for the
Empty annotation. |
static class |
FieldProxy.Binder
A binder for the
FieldProxy annotation. |
static class |
FieldValue.Binder
Binds a
FieldValue annotation. |
static class |
Morph.Binder
A binder for the
Morph annotation. |
static class |
Origin.Binder
A binder for binding parameters that are annotated with
Origin . |
static class |
Pipe.Binder
A
TargetMethodAnnotationDrivenBinder.ParameterBinder
for binding the Pipe annotation. |
static class |
StubValue.Binder
Binds the
StubValue annotation. |
static class |
Super.Binder
A binder for handling the
Super
annotation. |
static class |
SuperCall.Binder
A binder for handling the
SuperCall
annotation. |
static class |
This.Binder
A binder for handling the
This
annotation. |
Modifier and Type | Field and Description |
---|---|
static List<TargetMethodAnnotationDrivenBinder.ParameterBinder<?>> |
TargetMethodAnnotationDrivenBinder.ParameterBinder.DEFAULTS
The default parameter binders to be used.
|
Modifier and Type | Method and Description |
---|---|
static TargetMethodAnnotationDrivenBinder.ParameterBinder<Pipe> |
Pipe.Binder.install(Class<?> type)
Installs a given type for use on a
Pipe
annotation. |
static TargetMethodAnnotationDrivenBinder.ParameterBinder<Morph> |
Morph.Binder.install(Class<?> type)
Installs a given type for use on a
Morph
annotation. |
static TargetMethodAnnotationDrivenBinder.ParameterBinder<FieldProxy> |
FieldProxy.Binder.install(Class<?> getterType,
Class<?> setterType)
Creates a binder by installing two proxy types which are implemented by this binder if a field getter
or a field setter is requested by using the
FieldProxy annotation. |
static TargetMethodAnnotationDrivenBinder.ParameterBinder<Pipe> |
Pipe.Binder.install(TypeDescription typeDescription)
Installs a given type for use on a
Pipe
annotation. |
static TargetMethodAnnotationDrivenBinder.ParameterBinder<Morph> |
Morph.Binder.install(TypeDescription typeDescription)
Installs a given type for use on a
Morph
annotation. |
static TargetMethodAnnotationDrivenBinder.ParameterBinder<FieldProxy> |
FieldProxy.Binder.install(TypeDescription getterType,
TypeDescription setterType)
Creates a binder by installing two proxy types which are implemented by this binder if a field getter
or a field setter is requested by using the
FieldProxy annotation. |
Modifier and Type | Method and Description |
---|---|
protected static TargetMethodAnnotationDrivenBinder.DelegationProcessor |
TargetMethodAnnotationDrivenBinder.DelegationProcessor.of(List<TargetMethodAnnotationDrivenBinder.ParameterBinder<?>> parameterBinders)
Creates a new delegation processor.
|
Constructor and Description |
---|
Bound(TargetMethodAnnotationDrivenBinder.ParameterBinder<T> parameterBinder,
AnnotationDescription.Loadable<T> annotation)
Creates a new bound handler.
|
Constructor and Description |
---|
DelegationProcessor(Map<TypeDescription,TargetMethodAnnotationDrivenBinder.ParameterBinder<?>> parameterBinders)
Creates a new delegation processor.
|
TargetMethodAnnotationDrivenBinder(List<TargetMethodAnnotationDrivenBinder.ParameterBinder<?>> parameterBinders,
TargetMethodAnnotationDrivenBinder.DefaultsProvider defaultsProvider,
TargetMethodAnnotationDrivenBinder.TerminationHandler terminationHandler,
Assigner assigner,
MethodDelegationBinder.MethodInvoker methodInvoker)
Creates a new method delegation binder that binds method based on annotations found on the target method.
|
Copyright © 2014–2016. All rights reserved.