Parameters that are annotated with this annotation will be assigned a reference to the instrumented object, if the instrumented method is not static. Otherwise, the method with this parameter annotation will be excluded from the list of possible binding candidates of the static source method.
Important Note
Don't confuse this annotation with org. or
org.. This annotation should be used with
org. only.
net.bytebuddy.implementation.MethodDelegation , net.bytebuddy.implementation.bind.annotation.TargetMethodAnnotationDrivenBinder
| Modifier and Type | Class and Description |
|---|---|
| public static enum | This.
A binder for handling the
|
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if the annotated parameter should be bound to null as a fallback.Determines if the annotated parameter should be bound to |
| optional | back to summary |
|---|---|
| public boolean optional() Determines if the annotated parameter should be bound to
| |
org.easymock.bytebuddy.implementation.bind.annotation.This
annotation.
TargetMethodAnnotationDrivenBinder
| Modifier and Type | Field and Description |
|---|---|
| public static final This. | INSTANCE
The singleton instance. |
| private static final MethodDescription. | OPTIONAL
A description of the |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public MethodDelegationBinder. | bind(AnnotationDescription.
The annotation that was cause for the delegation to this argument binder. annotation,The intercepted source method. source, ParameterDescription Tge target parameter that is subject to be bound to
intercepting the target, Implementation.source method.The target of the current implementation that is subject to this binding. implementationTarget,An assigner that can be used for applying the binding. assigner, Assigner.The typing to apply. typing |
| public Class | getHandledType()
The annotation type that is handled by this parameter binder.
|
| public static This. | |
| public static This. |
| INSTANCE | back to summary |
|---|---|
| public static final This. The singleton instance. | |
| OPTIONAL | back to summary |
|---|---|
| private static final MethodDescription. A description of the | |
| Binder | back to summary |
|---|---|
| private Binder() | |
| bind | back to summary |
|---|---|
| public MethodDelegationBinder. Creates a parameter binding for the given target parameter.
| |
| getHandledType | back to summary |
|---|---|
| public Class The annotation type that is handled by this parameter binder.
| |
| valueOf | back to summary |
|---|---|
| public static This. | |
| values | back to summary |
|---|---|
| public static This. | |