Package net.bytebuddy.asm
Annotation Type MemberSubstitution.StubValue
-
@Documented @Retention(RUNTIME) @Target(PARAMETER) public static @interface MemberSubstitution.StubValueIndicates that the annotated parameter should always return a boxed version of the instrumented method's return value (i.e.
0for numeric values,falseforbooleantypes andnullfor reference types). The annotated parameter must be of typeObject.Important: Don't confuse this annotation with
StubValueorAdvice.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.SourcesourceDetermines 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
-
-