@Documented @Retention(value=RUNTIME) @Target(value={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
or
Advice.Argument
. This annotation should be used only in combination with MemberSubstitution.Substitution.Chain.Step.ForDelegation
.
Modifier and Type | Required Element and Description |
---|---|
int |
value
Determines the index of the parameter that is being assigned.
|
Modifier and Type | Optional Element and Description |
---|---|
boolean |
optional
Determines if the parameter should be assigned
null 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.
|
public abstract int value
public abstract Assigner.Typing typing
public abstract MemberSubstitution.Source source
Copyright © 2014–2023. All rights reserved.