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.
|
Class and Description |
---|
TargetMethodAnnotationDrivenBinder.DefaultsProvider
Implementations of the defaults provider interface create annotations for parameters that are not annotated with
a known annotation.
|
TargetMethodAnnotationDrivenBinder.ParameterBinder
A parameter binder is used as a delegate for binding a parameter according to a particular annotation type found
on this parameter.
|
TargetMethodAnnotationDrivenBinder.TerminationHandler
Responsible for creating a
StackManipulation
that is applied after the interception method is applied. |
Class and Description |
---|
AllArguments
Parameters that are annotated with this annotation will be assigned a collection (or an array) containing
all arguments of the source method.
|
AllArguments.Assignment
A directive for how an
AllArguments
annotation on an array is to be interpreted. |
AllArguments.Binder
A binder for handling the
AllArguments
annotation. |
Argument
Parameters that are annotated with this annotation will be assigned the value of the parameter of the source method
with the given parameter.
|
Argument.Binder
A binder for handling the
Argument
annotation. |
Argument.BindingMechanic
Determines if a parameter binding should be considered for resolving ambiguous method bindings.
|
Argument.NextUnboundAsDefaultsProvider
If this defaults provider is active, a non-annotated parameter is assumed to be implicitly bound to the next
source method parameter that is not bound by any other target method parameter, i.e. a target method
bar(Object, String) would be equivalent to a bar(@Argument(0) Object, @Argument(1) String) . |
BindingPriority.Resolver
An ambiguity resolver that considers the priority of a method as defined by the
BindingPriority
annotation. |
Default
Parameters that are annotated with this annotation are assigned an instance of an auxiliary proxy type that allows calling
any default method of an interface of the instrumented type where the parameter type must be an interface that is
directly implemented by the instrumented type.
|
Default.Binder
A binder for the
Default annotation. |
Default.Binder.TypeLocator
Locates the type which should be the base type of the created proxy.
|
Default.Binder.TypeLocator.ForParameterType
A type locator that yields the target parameter's type.
|
DefaultCall
A parameter with this annotation is assigned a proxy for invoking a default method that fits the intercepted method.
|
DefaultCall.Binder
A binder for handling the
DefaultCall
annotation. |
DefaultCall.Binder.DefaultMethodLocator
A default method locator is responsible for looking up a default method to a given source method.
|
DefaultCall.Binder.DefaultMethodLocator.Implicit
An implicit default method locator that only permits the invocation of a default method if the source
method itself represents a method that was defined on a default method interface.
|
Empty
Binds the parameter type's default value to the annotated parameter, i.e.
|
Empty.Binder
A binder for the
Empty annotation. |
FieldProxy
Using this annotation it is possible to access fields by getter and setter types.
|
FieldProxy.Binder.AccessType
Determines the way a field is to be accessed.
|
FieldProxy.Binder.FieldLocator
A field locator is responsible for locating the type a field is defined in.
|
FieldProxy.Binder.FieldLocator.LookupEngine
A lookup engine is responsible for finding a specific field in a type hierarchy.
|
FieldProxy.Binder.FieldLocator.Resolution
A resolution represents the result of a field location.
|
FieldProxy.Binder.StaticFieldConstructor
Represents an implementation for implementing a proxy type constructor when a static field is accessed.
|
FieldValue
Assigns the value of a field of the instrumented type to the annotated parameter.
|
FieldValue.Binder
Binds a
FieldValue annotation. |
FieldValue.Binder.FieldLocator
Responsible for locating a field of the instrumented type.
|
FieldValue.Binder.FieldLocator.Resolution
A resolution of a field locator.
|
FieldValue.Binder.FieldLocator.Resolution.Unresolved
A canonical implementation of an unresolved field resolution.
|
Morph
This annotation instructs Byte Buddy to inject a proxy class that calls a method's super method with
explicit arguments.
|
Morph.Binder.DefaultMethodLocator
A default method locator is responsible for looking up a default method to a given source method.
|
Morph.Binder.DefaultMethodLocator.Implicit
An implicit default method locator that only permits the invocation of a default method if the source
method itself represents a method that was defined on a default method interface.
|
Morph.Binder.RedirectionProxy.StaticFieldConstructor
Creates an instance of the proxy when instrumenting a static method.
|
Origin
The origin annotation provides some meta information about the source method that is bound to this method where
the binding is dependant of the parameter's type:
If the annotated parameter is of type
Method , Constructor or
java.lang.reflect.Executable , the parameter is assigned a reference to the method or constructor it
instruments. |
Origin.Binder
A binder for binding parameters that are annotated with
Origin . |
Pipe
A target method parameter that is annotated with this annotation allows to forward an intercepted method
invocation to another instance.
|
Pipe.Binder.Redirection.ConstructorCall
The implementation to implement a
Pipe.Binder.Redirection 's
constructor. |
StubValue
A stub value represents the (boxed) default value of the intercepted method's return type.
|
StubValue.Binder
Binds the
StubValue annotation. |
Super
Parameters that are annotated with this annotation are assigned an instance of an auxiliary proxy type that allows calling
any
super methods of the instrumented type where the parameter type must be a super type of the instrumented type. |
Super.Binder
A binder for handling the
Super
annotation. |
Super.Binder.TypeLocator
Locates the type which should be the base type of the created proxy.
|
Super.Binder.TypeLocator.ForInstrumentedType
A type locator that yields the instrumented type.
|
Super.Binder.TypeLocator.ForParameterType
A type locator that yields the target parameter's type.
|
Super.Instantiation
Determines the instantiation of the proxy type.
|
SuperCall
Parameters that are annotated with this annotation will be assigned a proxy for calling the instrumented method's
super implementation. |
SuperCall.Binder
A binder for handling the
SuperCall
annotation. |
TargetMethodAnnotationDrivenBinder.DefaultsProvider
Implementations of the defaults provider interface create annotations for parameters that are not annotated with
a known annotation.
|
TargetMethodAnnotationDrivenBinder.DefaultsProvider.Empty
A defaults provider that does not supply any defaults.
|
TargetMethodAnnotationDrivenBinder.DefaultsProvider.Empty.EmptyIterator
A trivial iterator without any elements.
|
TargetMethodAnnotationDrivenBinder.DelegationProcessor
A delegation processor is a helper class for a
TargetMethodAnnotationDrivenBinder
for performing its actual logic. |
TargetMethodAnnotationDrivenBinder.DelegationProcessor.Handler
A handler is responsible for processing a parameter's binding.
|
TargetMethodAnnotationDrivenBinder.DelegationProcessor.Handler.Unbound
An unbound handler is a fallback for returning an illegal binding for parameters for which no parameter
binder could be located.
|
TargetMethodAnnotationDrivenBinder.ParameterBinder
A parameter binder is used as a delegate for binding a parameter according to a particular annotation type found
on this parameter.
|
TargetMethodAnnotationDrivenBinder.TerminationHandler
Responsible for creating a
StackManipulation
that is applied after the interception method is applied. |
TargetMethodAnnotationDrivenBinder.TerminationHandler.Dropping
A termination handler that pops the return value of the interception method.
|
TargetMethodAnnotationDrivenBinder.TerminationHandler.Returning
A termination handler that returns the return value of the interception method.
|
This
Parameters that are annotated with this annotation will be assigned a reference to the instrumented object, if
the instrumented method is not static.
|
This.Binder
A binder for handling the
This
annotation. |
Copyright © 2014–2016. All rights reserved.