Class Advice.MethodSizeHandler.Default.WithRetainedArguments

    • Constructor Detail

      • WithRetainedArguments

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