Package net.bytebuddy.asm
Annotation Interface MemberSubstitution.AllArguments
- Enclosing class:
MemberSubstitution
@Documented
@Retention(RUNTIME)
@Target(PARAMETER)
public static @interface MemberSubstitution.AllArguments
Assigns an array containing all arguments of the targeted element to the annotated parameter. The annotated parameter must be an array type.
Important: Don't confuse this annotation with AllArguments
or
Advice.AllArguments
. This annotation should be used only in combination with MemberSubstitution.Substitution.Chain.Step.ForDelegation
.
- See Also:
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionboolean
Determines if the produced array should include the instrumented method's target reference within the array, if the targeted element is non-static.boolean
Determines ifnull
should be assigned to the annotated parameter to the annotated parameter.Determines the source that is considered for this annotation which can be either the substituted method, constructor or field, or the instrumented method.The typing that should be applied when assigning the arguments to an array element.
-
Element Details
-
typing
Assigner.Typing typingThe typing that should be applied when assigning the arguments to an array element.- Returns:
- The typing to apply upon assignment.
- Default:
STATIC
-
source
MemberSubstitution.Source sourceDetermines the source that is considered for this annotation which can be either the substituted method, constructor or field, or the instrumented method.- Returns:
- The source that is considered for this annotation.
- Default:
SUBSTITUTED_ELEMENT
-
includeSelf
boolean includeSelfDetermines if the produced array should include the instrumented method's target reference within the array, if the targeted element is non-static.- Returns:
true
if a possiblethis
reference should be included in the assigned array.
- Default:
false
-
nullIfEmpty
boolean nullIfEmptyDetermines ifnull
should be assigned to the annotated parameter to the annotated parameter.- Returns:
true
ifnull
should be assigned to the annotated parameter to the annotated parameter.
- Default:
false
-