Package net.bytebuddy.asm
Annotation Type MemberSubstitution.StubValue
-
@Documented @Retention(RUNTIME) @Target(PARAMETER) public static @interface MemberSubstitution.StubValue
Indicates that the annotated parameter should always return a boxed version of the instrumented method's return value (i.e.
0
for numeric values,false
forboolean
types andnull
for reference types). The annotated parameter must be of typeObject
.Important: Don't confuse this annotation with
StubValue
orAdvice.StubValue
. This annotation should be used only in combination withMemberSubstitution.Substitution.Chain.Step.ForDelegation
.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description 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.
-
-
-
Element Detail
-
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
-
-