public class IEConditionalCompilationScriptPreProcessor extends Object implements ScriptPreProcessor
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"
Constructor and Description |
---|
IEConditionalCompilationScriptPreProcessor() |
Modifier and Type | Method and Description |
---|---|
String |
preProcess(HtmlPage htmlPage,
String sourceCode,
String sourceName,
HtmlElement htmlElement)
Pre process the specified source code in the context of the given page.
|
public IEConditionalCompilationScriptPreProcessor()
public String preProcess(HtmlPage htmlPage, String sourceCode, String sourceName, HtmlElement htmlElement)
preProcess
in interface ScriptPreProcessor
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.Copyright © 2002-2012 Gargoyle Software Inc.. All Rights Reserved.