Class Advice.MethodSizeHandler.Default.WithRetainedArguments

    • Constructor Detail

      • WithRetainedArguments

        protected WithRetainedArguments​(MethodDescription instrumentedMethod,
                                        java.util.List<? extends TypeDescription> enterTypes,
                                        java.util.List<? extends TypeDescription> exitTypes)
        Creates a new default method size handler that expects that the original arguments are retained.
        Parameters:
        instrumentedMethod - The instrumented method.
        enterTypes - A list of virtual method arguments that are available before the instrumented method is executed.
        exitTypes - A list of virtual method arguments that are available after the instrumented method has completed.