Class Advice.MethodSizeHandler.Default.WithCopiedArguments

    • Constructor Detail

      • WithCopiedArguments

        protected WithCopiedArguments​(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 the original arguments to be copied.
        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.