@Documented @Retention(value=RUNTIME) @Target(value={PARAMETER,METHOD,CONSTRUCTOR}) public static @interface MemberSubstitution.This
Indicates that the annotated parameter should be mapped to the this
reference of the substituted field,
method, constructor or of the instrumented method.
Important: Don't confuse this annotation with This
or
Advice.This
. This annotation should be used only in combination with MemberSubstitution.Substitution.Chain.Step.ForDelegation
.
Modifier and Type | Optional Element and Description |
---|---|
boolean |
optional
Determines if the parameter should be assigned
null if no this parameter 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
this value. |
public abstract Assigner.Typing typing
this
value.public abstract MemberSubstitution.Source source
Copyright © 2014–2024. All rights reserved.