Package net.bytebuddy.asm
Annotation Type Advice.StubValue
- Enclosing class:
Advice
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
and cannot be assigned a value.
Important: Don't confuse this annotation with StubValue
or
MemberSubstitution.StubValue
. This annotation should
be used only in combination with Advice
.
- See Also: