JavaScript is disabled on your browser.
Skip navigation links
  • Summary:
  • Nested |
  • Field |
  • Constr |
  • Method
  • Detail:
  • Field |
  • Constr |
  • Method
org.htmlunit

Interface ScriptPreProcessor



  • public interface ScriptPreProcessor
    A script pre processor call back. This interface is called when ScriptEngine.execute() is called. It gives developers the opportunity to modify the script to be executed.
    Author:
    Ben Curren
    • Method Summary

      All Methods
      Modifier and Type Method and Description
      String preProcess (HtmlPage htmlPage, String sourceCode, String sourceName, int lineNumber, HtmlElement htmlElement)
      Pre process the specified source code in the context of the given page.
    • Method Detail

      • preProcess

        String preProcess(HtmlPage htmlPage,
         String sourceCode,
         String sourceName,
         int lineNumber,
         HtmlElement htmlElement)
        Pre process the specified source code in the context of the given page.
        Parameters:
        htmlPage - the page
        sourceCode - the code to execute
        sourceName - a name for the chunk of code that is going to be executed (used in error messages)
        lineNumber - the line number of the source code
        htmlElement - the HTML element that will act as the context
        Returns:
        the source code after pre processing
Skip navigation links
  • Summary:
  • Nested |
  • Field |
  • Constr |
  • Method
  • Detail:
  • Field |
  • Constr |
  • Method

Copyright © 2002–2025 Gargoyle Software Inc.. All rights reserved.

AltStyle によって変換されたページ (->オリジナル) /