Package | Description |
---|---|
net.bytebuddy.implementation |
The implementation package contains any logic for intercepting method calls.
|
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.appendParameterBinder(TargetMethodAnnotationDrivenBinder.ParameterBinder<?> parameterBinder)
Defines an parameter binder to be appended to the already defined parameter binders.
|
MethodDelegation |
MethodDelegation.defineAmbiguityResolver(MethodDelegationBinder.AmbiguityResolver... ambiguityResolver)
Defines an ambiguity resolver to be used for resolving binding conflicts.
|
MethodDelegation |
MethodDelegation.defineParameterBinder(TargetMethodAnnotationDrivenBinder.ParameterBinder<?>... parameterBinder)
Defines a number of parameter binders to be appended to be used by this method delegation.
|
MethodDelegation |
MethodDelegation.filter(ElementMatcher<? super MethodDescription> methodMatcher)
Applies a filter to target methods that are eligible for delegation.
|
static MethodDelegation |
MethodDelegation.to(Class<?> type)
Creates an implementation where only
static methods of the given type are considered as binding targets. |
static MethodDelegation |
MethodDelegation.to(Object delegate)
Creates an implementation where only instance methods of the given object are considered as binding targets.
|
static MethodDelegation |
MethodDelegation.to(Object delegate,
MethodGraph.Compiler methodGraphCompiler)
Creates an implementation where only instance methods of the given object are considered as binding targets.
|
static MethodDelegation |
MethodDelegation.to(Object delegate,
String fieldName)
Creates an implementation where only instance methods of the given object are considered as binding targets.
|
static MethodDelegation |
MethodDelegation.to(Object delegate,
String fieldName,
MethodGraph.Compiler methodGraphCompiler)
Creates an implementation where only instance methods of the given object are considered as binding targets.
|
static MethodDelegation |
MethodDelegation.to(TypeDescription typeDescription)
Creates an implementation where only
static methods of the given type are considered as binding targets. |
static MethodDelegation |
MethodDelegation.toConstructor(Class<?> type)
Creates an implementation where method calls are delegated to constructor calls on the given type.
|
static MethodDelegation |
MethodDelegation.toConstructor(TypeDescription typeDescription)
Creates an implementation where method calls are delegated to constructor calls on the given type.
|
static MethodDelegation |
MethodDelegation.toInstanceField(Class<?> type,
String fieldName)
Creates an implementation where method calls are delegated to an instance that is manually stored in a field
fieldName that is defined for the instrumented type. |
static MethodDelegation |
MethodDelegation.toInstanceField(Class<?> type,
String fieldName,
MethodGraph.Compiler methodGraphCompiler)
Creates an implementation where method calls are delegated to an instance that is manually stored in a field
fieldName that is defined for the instrumented type. |
static MethodDelegation |
MethodDelegation.toInstanceField(TypeDescription typeDescription,
String fieldName)
Creates an implementation where method calls are delegated to an instance that is manually stored in a field
fieldName that is defined for the instrumented type. |
static MethodDelegation |
MethodDelegation.toInstanceField(TypeDescription typeDescription,
String fieldName,
MethodGraph.Compiler methodGraphCompiler)
Creates an implementation where method calls are delegated to an instance that is manually stored in a field
fieldName that is defined for the instrumented type. |
MethodDelegation |
MethodDelegation.withAssigner(Assigner assigner)
Applies an assigner to the method delegation that is used for assigning method return and parameter types.
|
MethodDelegation |
MethodDelegation.withDefaultsProvider(TargetMethodAnnotationDrivenBinder.DefaultsProvider defaultsProvider)
A provider for annotation instances on values that are not explicitly annotated.
|
Copyright © 2014–2015. All rights reserved.