Package net.bytebuddy.asm
Annotation Type MemberSubstitution.This
-
@Documented @Retention(RUNTIME) @Target({PARAMETER,METHOD,CONSTRUCTOR}) public static @interface MemberSubstitution.ThisIndicates that the annotated parameter should be mapped to the
thisreference of the substituted field, method, constructor or of the instrumented method.Important: Don't confuse this annotation with
ThisorAdvice.This. This annotation should be used only in combination withMemberSubstitution.Substitution.Chain.Step.ForDelegation.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description booleanoptionalDetermines if the parameter should be assignednullif nothisparameter is available.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 thethisvalue.
-
-
-
Element Detail
-
typing
Assigner.Typing typing
The typing that should be applied when assigning thethisvalue.- 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
-
-