com.gargoylesoftware.htmlunit.javascript
Class IEConditionalCompilationScriptPreProcessor
java.lang.Object
com.gargoylesoftware.htmlunit.javascript.IEConditionalCompilationScriptPreProcessor
- All Implemented Interfaces:
- ScriptPreProcessor
public class IEConditionalCompilationScriptPreProcessor
- extends java.lang.Object
- implements ScriptPreProcessor
A basic implementation for IE Conditional Compilation.
Currently provides (basic) supports for @cc_on
, @if
,
@el_if
, @else
, @end
and @set,
as well as for conditional compilation variables:
"@_win16", "@_mac", "@_alpha", "@_mc680x0", "@_PowerPC", "@_debug", "@_fast",
"@_win32", "@_x86", "@_jscript", "@_jscript_version" and "@_jscript_build"
- Version:
- $Revision: 1.3 $
- Author:
- Ahmed Ashour, Marc Guillemot
- See Also:
- Microsoft Docs
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. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IEConditionalCompilationScriptPreProcessor
public IEConditionalCompilationScriptPreProcessor()
preProcess
public 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.
- Specified by:
preProcess
in interface ScriptPreProcessor
- 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-2016 AppPerfect Corporation. All Rights Reserved.