com.gargoylesoftware.htmlunit
Interface ScriptPreProcessor
- All Known Implementing Classes:
- IEConditionalCompilationScriptPreProcessor
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.
- Version:
- $Revision: 1.3 $
- Author:
- Ben Curren
Method Summary |
java.lang.String |
preProcess(HtmlPage htmlPage,
java.lang.String sourceCode,
java.lang.String sourceName,
HtmlElement htmlElement)
Pre process the specified source code in the context of the given page. |
preProcess
java.lang.String preProcess(HtmlPage htmlPage,
java.lang.String sourceCode,
java.lang.String sourceName,
HtmlElement htmlElement)
- Pre process the specified source code in the context of the given page.
- Parameters:
htmlPage
- The pagesourceCode
- The code to execute.sourceName
- A name for the chunk of code that is going to be executed. This will be
used in error messages.htmlElement
- The html element that will act as the context.
- Returns:
- The source code after pre processing
Copyright © 2003-2009 AppPerfect Corporation. All Rights Reserved.