Package net.bytebuddy.asm
Class Advice.OnNonDefaultValue
- java.lang.Object
-
- net.bytebuddy.asm.Advice.OnNonDefaultValue
-
- Enclosing class:
- Advice
public static final class Advice.OnNonDefaultValue extends java.lang.Object
A marker type to be used as an argument forAdvice.OnMethodEnter.skipOn()
. If this value is set, the instrumented method is not invoked if the annotated advice method returns a non-default value. A default value isfalse
for aboolean
type,0
for abyte
,short
,char
,int
,long
,float
ordouble
type andnull
for a reference type. It is illegal to use this value if the advice method returnsvoid
.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
OnNonDefaultValue()
A private constructor as this class is not supposed to be invoked.
-