@Documented @Retention(value=RUNTIME) @Target(value=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
.
Modifier and Type | Optional Element and Description |
---|---|
boolean |
includeSelf
Determines if the produced array should include the instrumented method's target reference within the array, if
the targeted element is non-static.
|
boolean |
nullIfEmpty
Determines if
null should be assigned to the annotated parameter to the annotated parameter. |
MemberSubstitution.Source |
source
Determines the source that is considered for this annotation which can be either the substituted method,
constructor or field, or the instrumented method.
|
Assigner.Typing |
typing
The typing that should be applied when assigning the arguments to an array element.
|
public abstract Assigner.Typing typing
public abstract MemberSubstitution.Source source
Copyright © 2014–2024. All rights reserved.