Class Advice.Dispatcher.Inlining.Resolved.ForMethodExit.WithoutExceptionHandler

    • Constructor Detail

      • WithoutExceptionHandler

        protected WithoutExceptionHandler​(MethodDescription.InDefinedShape adviceMethod,
                                          java.util.List<? extends Advice.OffsetMapping.Factory<?>> userFactories,
                                          org.objectweb.asm.ClassReader classReader,
                                          TypeDefinition enterType)
        Creates a new resolved dispatcher for implementing method exit advice that does not handle exceptions.
        Parameters:
        adviceMethod - The represented advice method.
        userFactories - A list of user-defined factories for offset mappings.
        classReader - A class reader to query for the class file of the advice method.
        enterType - The type of the value supplied by the enter advice method or a description of void if no such value exists.
    • Method Detail

      • getThrowable

        public TypeDescription getThrowable()
        Description copied from interface: Advice.Dispatcher.Resolved.ForMethodExit
        Returns the type of throwable for which this exit advice is supposed to be invoked.
        Returns:
        The Throwable type for which to invoke this exit advice or a description of Advice.NoExceptionHandler if this exit advice does not expect to be invoked upon any throwable.