Package | Description |
---|---|
net.bytebuddy.instrumentation |
The instrumentation package contains any logic for intercepting method calls.
|
net.bytebuddy.instrumentation.method.bytecode.bind |
The types and classes of this package are responsible for binding a method call to calling another method.
|
net.bytebuddy.instrumentation.method.bytecode.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.appendAmbiguityResolver(MethodDelegationBinder.AmbiguityResolver ambiguityResolver)
Defines an ambiguity resolver to be appended to the already defined ambiguity resolver for resolving binding conflicts.
|
MethodDelegation |
MethodDelegation.defineAmbiguityResolver(MethodDelegationBinder.AmbiguityResolver... ambiguityResolver)
Defines an ambiguity resolver to be used for resolving binding conflicts.
|
Constructor and Description |
---|
MethodDelegation(MethodDelegation.InstrumentationDelegate instrumentationDelegate,
List<TargetMethodAnnotationDrivenBinder.ParameterBinder<?>> parameterBinders,
TargetMethodAnnotationDrivenBinder.DefaultsProvider<?> defaultsProvider,
MethodDelegationBinder.AmbiguityResolver ambiguityResolver,
Assigner assigner,
MethodList targetMethodCandidates)
Creates a new method delegation.
|
Modifier and Type | Class and Description |
---|---|
static class |
MethodDelegationBinder.AmbiguityResolver.Chain
A chain of
MethodDelegationBinder.AmbiguityResolver s
that are applied in the given order until two bindings can be resolved. |
static class |
MethodDelegationBinder.AmbiguityResolver.NoOp
An ambiguity resolver that does not attempt to resolve a conflicting binding.
|
class |
MethodNameEqualityResolver
Implementation of an
MethodDelegationBinder.AmbiguityResolver
that resolves conflicting bindings by considering equality of a target method's internalName as an indicator for a dominant
binding. |
class |
MostSpecificTypeResolver
Implementation of an
MethodDelegationBinder.AmbiguityResolver
that resolves two conflicting bindings by considering most-specific types of target method parameters in the same manner
as the Java compiler resolves bindings of overloaded method. |
class |
ParameterLengthResolver
This
MethodDelegationBinder.AmbiguityResolver selects
the method with more arguments. |
Modifier and Type | Method and Description |
---|---|
MethodDelegationBinder.AmbiguityResolver |
MethodDelegationBinder.Processor.getAmbiguityResolver()
Returns the
MethodDelegationBinder.AmbiguityResolver
used by this Processor . |
static MethodDelegationBinder.AmbiguityResolver |
MethodDelegationBinder.AmbiguityResolver.Chain.of(MethodDelegationBinder.AmbiguityResolver... ambiguityResolver)
Chains a given number of ambiguity resolvers.
|
Modifier and Type | Method and Description |
---|---|
static MethodDelegationBinder.AmbiguityResolver |
MethodDelegationBinder.AmbiguityResolver.Chain.of(MethodDelegationBinder.AmbiguityResolver... ambiguityResolver)
Chains a given number of ambiguity resolvers.
|
Constructor and Description |
---|
Chain(MethodDelegationBinder.AmbiguityResolver... ambiguityResolver)
Creates an immutable chain of ambiguity resolvers.
|
Processor(MethodDelegationBinder methodDelegationBinder,
MethodDelegationBinder.AmbiguityResolver ambiguityResolver)
Creates a new processor for a method delegation binder.
|
Modifier and Type | Class and Description |
---|---|
static class |
BindingPriority.Resolver
An ambiguity resolver that considers the priority of a method as defined by the
BindingPriority
annotation. |
Copyright © 2014. All rights reserved.