Package net.bytebuddy.asm
Annotation Type MemberSubstitution.AllArguments
-
@Documented @Retention(RUNTIME) @Target(PARAMETER) public static @interface MemberSubstitution.AllArgumentsAssigns 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
AllArgumentsorAdvice.AllArguments. This annotation should be used only in combination withMemberSubstitution.Substitution.Chain.Step.ForDelegation.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description booleanincludeSelfDetermines if the produced array should include the instrumented method's target reference within the array, if the targeted element is non-static.booleannullIfEmptyDetermines ifnullshould be assigned to the annotated parameter to the annotated parameter.MemberSubstitution.SourcesourceDetermines the source that is considered for this annotation which can be either the substituted method, constructor or field, or the instrumented method.Assigner.TypingtypingThe typing that should be applied when assigning the arguments to an array element.
-
-
-
Element Detail
-
typing
Assigner.Typing typing
The typing that should be applied when assigning the arguments to an array element.- Returns:
- The typing to apply upon assignment.
- Default:
- net.bytebuddy.implementation.bytecode.assign.Assigner.Typing.STATIC
-
-
-
source
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.- Returns:
- The source that is considered for this annotation.
- Default:
- net.bytebuddy.asm.MemberSubstitution.Source.SUBSTITUTED_ELEMENT
-
-