Parameters that are annotated with this annotation will be assigned an array of all arguments of the instrumented method.
By default, this annotation applies a
net.
assignment of the source method's parameters to the array. This implies that parameters that are not assignable to
the annotated array's component type make the method with this parameter unbindable. To avoid this, you can
use a net. assignment
which simply skips non-assignable values instead.
Important Note
Don't confuse this annotation with net. or
net.. This annotation should be used with
net. only.
net.bytebuddy.implementation.MethodDelegation , net.bytebuddy.implementation.bind.annotation.TargetMethodAnnotationDrivenBinder , net.bytebuddy.implementation.bind.annotation.RuntimeType
| Modifier and Type | Class and Description |
|---|---|
| public static enum | AllArguments.Assignment
A directive for how an |
| public static enum | AllArguments.Binder
A binder for handling the
|
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if the instance on which the intercepted method should be invoked should be
included in the array containing the arguments.Determines if the array should contain the instance that defines the intercepted value when intercepting a non-static method. |
| public boolean | Returns: true if a null value should be assigned if the instrumented method does not declare any parameters.Determines if a |
| public AllArguments. | Returns: The assignment handling to be applied for the annotated parameter.Defines the type of |
| includeSelf | back to summary |
|---|---|
| public boolean includeSelf() Determines if the array should contain the instance that defines the intercepted value when intercepting a non-static method.
| |
| nullIfEmpty | back to summary |
|---|---|
| public boolean nullIfEmpty() Determines if a
| |
| value | back to summary |
|---|---|
| public AllArguments. Defines the type of
| |
net.bytebuddy.implementation.bind.annotation.AllArguments
annotation on an array is to be interpreted.
| Modifier and Type | Field and Description |
|---|---|
| public static final AllArguments. | SLACK
Other than a |
| public static final AllArguments. | STRICT
A strict assignment attempts to include all parameter values of the source method. |
| private final boolean | strict
Determines if this assignment is strict. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| protected boolean | |
| public static AllArguments. | |
| public static AllArguments. |
| SLACK | back to summary |
|---|---|
| public static final AllArguments. Other than a | |
| STRICT | back to summary |
|---|---|
| public static final AllArguments. A strict assignment attempts to include all parameter values of the source method. If only one of these parameters is not assignable to the component type of the annotated array, the method is considered as non-bindable. | |
| strict | back to summary |
|---|---|
| private final boolean strict Determines if this assignment is strict. | |
| Assignment | back to summary |
|---|---|
| private Assignment(boolean strict) Creates a new assignment type.
| |
| isStrict | back to summary |
|---|---|
| protected boolean isStrict() Returns
| |
| valueOf | back to summary |
|---|---|
| public static AllArguments. | |
| values | back to summary |
|---|---|
| public static AllArguments. | |
net.bytebuddy.implementation.bind.annotation.AllArguments
annotation.
TargetMethodAnnotationDrivenBinder
| Modifier and Type | Field and Description |
|---|---|
| private static final MethodDescription. | INCLUDE_SELF
A description of the |
| public static final AllArguments. | INSTANCE
The singleton instance. |
| private static final MethodDescription. | NULL_IF_EMPTY
A description of the |
| private static final MethodDescription. | VALUE
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. typingImplements net. |
| public Class | getHandledType()
The annotation type that is handled by this parameter binder.
|
| public static AllArguments. | |
| public static AllArguments. |
| INCLUDE_SELF | back to summary |
|---|---|
| private static final MethodDescription. A description of the | |
| INSTANCE | back to summary |
|---|---|
| public static final AllArguments. The singleton instance. | |
| NULL_IF_EMPTY | back to summary |
|---|---|
| private static final MethodDescription. A description of the | |
| VALUE | back to summary |
|---|---|
| private static final MethodDescription. A description of the | |
| Binder | back to summary |
|---|---|
| private Binder() | |
| bind | back to summary |
|---|---|
| public MethodDelegationBinder. Implements net. Doc from net. 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 AllArguments. | |
| values | back to summary |
|---|---|
| public static AllArguments. | |