Class JavaScriptFunctionJob

All Implemented Interfaces:
Comparable<JavaScriptJob>, Runnable, JavaScriptJob

class JavaScriptFunctionJob extends JavaScriptExecutionJob
A JavaScriptJob created from a Function object.
  • Field Details

    • function_

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

      private final Object[] args_
  • Constructor Details

    • JavaScriptFunctionJob

      JavaScriptFunctionJob(int initialDelay, Integer period, String label, WebWindow window, org.htmlunit.corejs.javascript.Function function, 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
  • Method Details