Package net.bytebuddy.asm
Annotation Interface MemberSubstitution.StubValue
- Enclosing class:
MemberSubstitution
@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 for boolean types and null for reference types). The annotated
parameter must be of type Object.
Important: Don't confuse this annotation with StubValue or
Advice.StubValue. This annotation should be used only in combination with MemberSubstitution.Substitution.Chain.Step.ForDelegation.
- See Also:
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionDetermines the source that is considered for this annotation which can be either the substituted method, constructor or field, or the instrumented method.
-
Element Details
-
source
MemberSubstitution.Source sourceDetermines 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:
SUBSTITUTED_ELEMENT
-