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 | Field and Description |
---|---|
protected List<? extends TargetMethodAnnotationDrivenBinder.ParameterBinder<?>> |
MethodDelegation.ImplementationDelegate.ForField.parameterBinders
The parameter binders to use.
|
Modifier and Type | Method and Description |
---|---|
MethodDelegation.WithCustomProperties |
MethodDelegation.WithCustomProperties.withBinders(TargetMethodAnnotationDrivenBinder.ParameterBinder<?>... parameterBinder)
Configures this method delegation to use the supplied parameter binders when deciding what value to assign to
a parameter of a delegation target.
|
Modifier and Type | Method and Description |
---|---|
MethodDelegation.WithCustomProperties |
MethodDelegation.WithCustomProperties.withBinders(List<? extends TargetMethodAnnotationDrivenBinder.ParameterBinder<?>> parameterBinders)
Configures this method delegation to use the supplied parameter binders when deciding what value to assign to
a parameter of a delegation target.
|
Constructor and Description |
---|
ForField(String fieldName,
MethodGraph.Compiler methodGraphCompiler,
List<? extends TargetMethodAnnotationDrivenBinder.ParameterBinder<?>> parameterBinders,
ElementMatcher<? super MethodDescription> matcher)
Creates a new implementation delegate for a field delegation.
|
ForMethodReturn(String name,
MethodGraph.Compiler methodGraphCompiler,
List<? extends TargetMethodAnnotationDrivenBinder.ParameterBinder<?>> parameterBinders,
ElementMatcher<? super MethodDescription> matcher)
Creates a new implementation delegate for a method return value delegation.
|
MethodDelegation(MethodDelegation.ImplementationDelegate implementationDelegate,
List<TargetMethodAnnotationDrivenBinder.ParameterBinder<?>> parameterBinders,
MethodDelegationBinder.AmbiguityResolver ambiguityResolver,
MethodDelegationBinder.BindingResolver bindingResolver)
Creates a new method delegation.
|
WithCustomProperties(MethodDelegationBinder.AmbiguityResolver ambiguityResolver,
List<TargetMethodAnnotationDrivenBinder.ParameterBinder<?>> parameterBinders)
Creates a new method delegation with custom properties that does not filter any methods.
|
WithInstance(String fieldName,
MethodGraph.Compiler methodGraphCompiler,
List<? extends TargetMethodAnnotationDrivenBinder.ParameterBinder<?>> parameterBinders,
ElementMatcher<? super MethodDescription> matcher,
Object target,
TypeDescription.Generic fieldType)
Creates a new implementation delegate for invoking methods on a supplied instance.
|
WithLookup(String fieldName,
MethodGraph.Compiler methodGraphCompiler,
List<? extends TargetMethodAnnotationDrivenBinder.ParameterBinder<?>> parameterBinders,
ElementMatcher<? super MethodDescription> matcher,
FieldLocator.Factory fieldLocatorFactory)
Creates a new implementation delegate for a field that is declared by the instrumented type or any super type.
|
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 |
DefaultMethod.Binder
A binder for the
DefaultMethod 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. |
protected static class |
FieldValue.Binder.Delegate
A delegate implementation for the
FieldValue.Binder . |
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 |
SuperMethod.Binder
A binder for the
SuperMethod annotation. |
static class |
TargetMethodAnnotationDrivenBinder.ParameterBinder.ForFieldBinding<S extends Annotation>
A parameter binder that binds a field's value.
|
static class |
TargetMethodAnnotationDrivenBinder.ParameterBinder.ForFixedValue<S extends Annotation>
Implements a parameter binder that binds a fixed value to a parameter with a given annotation.
|
static class |
TargetMethodAnnotationDrivenBinder.ParameterBinder.ForFixedValue.OfConstant<U extends Annotation>
A parameter binder that binds a fixed value to a parameter annotation when using a
MethodDelegation . |
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<?> type)
Creates a binder by installing a single proxy type where annotating a parameter with
FieldProxy allows
getting and setting values for a given field. |
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 typeDescription)
Creates a binder by installing a single proxy type where annotating a parameter with
FieldProxy allows
getting and setting values for a given field. |
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. |
static <V extends Annotation> |
TargetMethodAnnotationDrivenBinder.ParameterBinder.ForFixedValue.OfConstant.of(Class<V> type,
Object value)
Creates a binder for binding a fixed value to a given annotation.
|
Modifier and Type | Method and Description |
---|---|
protected static TargetMethodAnnotationDrivenBinder.DelegationProcessor.Handler |
TargetMethodAnnotationDrivenBinder.DelegationProcessor.Handler.Bound.of(ParameterDescription target,
TargetMethodAnnotationDrivenBinder.ParameterBinder<?> parameterBinder,
AnnotationDescription annotation,
Assigner.Typing typing)
Creates a handler for a given annotation.
|
Modifier and Type | Method and Description |
---|---|
static MethodDelegationBinder |
TargetMethodAnnotationDrivenBinder.of(List<? extends TargetMethodAnnotationDrivenBinder.ParameterBinder<?>> parameterBinders)
Creates a new method delegation binder that binds method based on annotations found on the target method.
|
protected static TargetMethodAnnotationDrivenBinder.DelegationProcessor |
TargetMethodAnnotationDrivenBinder.DelegationProcessor.of(List<? extends TargetMethodAnnotationDrivenBinder.ParameterBinder<?>> parameterBinders)
Creates a new delegation processor.
|
Constructor and Description |
---|
Bound(ParameterDescription target,
TargetMethodAnnotationDrivenBinder.ParameterBinder<T> parameterBinder,
AnnotationDescription.Loadable<T> annotation,
Assigner.Typing typing)
Creates a new bound handler.
|
Constructor and Description |
---|
DelegationProcessor(Map<? extends TypeDescription,? extends TargetMethodAnnotationDrivenBinder.ParameterBinder<?>> parameterBinders)
Creates a new delegation processor.
|
Copyright © 2014–2020. All rights reserved.