Class JavaScriptFunctionJob

    • Field Detail

      • function_

        private final org.htmlunit.corejs.javascript.Function function_
        The JavaScript code to execute.
      • args_

        private final java.lang.Object[] args_
    • Constructor Detail

      • JavaScriptFunctionJob

        JavaScriptFunctionJob​(int initialDelay,
                              java.lang.Integer period,
                              java.lang.String label,
                              WebWindow window,
                              org.htmlunit.corejs.javascript.Function function,
                              java.lang.Object[] args)
        Creates a new JavaScript execution job, where the JavaScript code to execute is a function.
        Parameters:
        initialDelay - the initial amount of time to wait before executing this job
        period - the amount of time to wait between executions of this job (may be null)
        label - the label for the job
        window - the window to which the job belongs
        function - the JavaScript code to execute
        args - the arguments to pass into the function call