Class Advice.Dispatcher.SuppressionHandler.Suppressing.Bound

    • Constructor Detail

      • Bound

        protected Bound​(TypeDescription suppressedType,
                        StackManipulation exceptionHandler)
        Creates a new active, bound suppression handler.
        Parameters:
        suppressedType - The suppressed throwable type.
        exceptionHandler - The stack manipulation to apply within a suppression handler.
    • Method Detail

      • onPrepare

        public void onPrepare​(org.objectweb.asm.MethodVisitor methodVisitor)
        Invoked to prepare the suppression handler, i.e. to write an exception handler entry if appropriate.
        Specified by:
        onPrepare in interface Advice.Dispatcher.SuppressionHandler.Bound
        Parameters:
        methodVisitor - The method visitor to apply the preparation to.
      • onStart

        public void onStart​(org.objectweb.asm.MethodVisitor methodVisitor)
        Invoked at the start of a method.
        Specified by:
        onStart in interface Advice.Dispatcher.SuppressionHandler.Bound
        Parameters:
        methodVisitor - The method visitor of the instrumented method.