Annotation Type AllArguments
-
@Documented @Retention(RUNTIME) @Target(PARAMETER) public @interface AllArgumentsParameters that are annotated with this annotation will be assigned a collection (or an array) containing all arguments of the source method. Currently, this annotation supports the following collection types:- Array
By default, this annotation applies aAllArguments.Assignment.STRICTassignment 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 aAllArguments.Assignment.SLACKassignment which simply skips non-assignable values instead.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description booleanincludeSelfDetermines if the array should contain the instance that defines the intercepted value when intercepting a non-static method.AllArguments.AssignmentvalueDefines the type ofAllArguments.Assignmenttype that is applied for filling the annotated array with values.
-
-
-
Element Detail
-
value
AllArguments.Assignment value
Defines the type ofAllArguments.Assignmenttype that is applied for filling the annotated array with values.- Returns:
- The assignment handling to be applied for the annotated parameter.
- Default:
- net.bytebuddy.implementation.bind.annotation.AllArguments.Assignment.STRICT
-
-
-
includeSelf
boolean includeSelf
Determines if the array should contain the instance that defines the intercepted value when intercepting a non-static method.- Returns:
trueif the instance on which the intercepted method should be invoked should be included in the array containing the arguments.
- Default:
- false
-
-