Package net.bytebuddy.asm
Annotation Type MemberSubstitution.Argument
-
@Documented @Retention(RUNTIME) @Target({PARAMETER,METHOD,CONSTRUCTOR}) public static @interface MemberSubstitution.Argument
Indicates that the annotated parameter should be mapped to the parameter with index
value()
.Important: Don't confuse this annotation with
Argument
orAdvice.Argument
. This annotation should be used only in combination withMemberSubstitution.Substitution.Chain.Step.ForDelegation
.
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description int
value
Determines the index of the parameter that is being assigned.
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description boolean
optional
Determines if the parameter should be assignednull
if no argument with the specified index is available.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 argument.
-
-
-
-
typing
Assigner.Typing typing
The typing that should be applied when assigning the argument.- 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
-
-