Class Advice.OnNonDefaultValue

  • Enclosing class:
    Advice

    public static final class Advice.OnNonDefaultValue
    extends java.lang.Object
    A marker type to be used as an argument for Advice.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 is false for a boolean type, 0 for a byte, short, char, int, long, float or double type and null for a reference type. It is illegal to use this value if the advice method returns void.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private OnNonDefaultValue()
      A private constructor as this class is not supposed to be invoked.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OnNonDefaultValue

        private OnNonDefaultValue()
        A private constructor as this class is not supposed to be invoked.