| com.gargoylesoftware.htmlunit.ScriptPreProcessor
All known Subclasses: com.gargoylesoftware.htmlunit.javascript.IEConditionalCompilationScriptPreProcessor,
ScriptPreProcessor | public interface ScriptPreProcessor (Code) | | 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.
version: $Revision: 2132 $ author: Ben Curren |
Method Summary | |
String | preProcess(HtmlPage htmlPage, String sourceCode, String sourceName, HtmlElement htmlElement) Pre process the specified source code in the context of the given page.
Parameters: htmlPage - The page Parameters: sourceCode - The code to execute. Parameters: sourceName - A name for the chunk of code that is going to be executed. |
preProcess | String preProcess(HtmlPage htmlPage, String sourceCode, String sourceName, HtmlElement htmlElement)(Code) | | Pre process the specified source code in the context of the given page.
Parameters: htmlPage - The page Parameters: sourceCode - The code to execute. Parameters: sourceName - A name for the chunk of code that is going to be executed. This will beused in error messages. Parameters: htmlElement - The html element that will act as the context. The source code after pre processing |
|
|