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,
int lineNumber,
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, int lineNumber, HtmlElement htmlElement)
preProcess
in interface ScriptPreProcessor
htmlPage
- the pagesourceCode
- the code to executesourceName
- a name for the chunk of code that is going to be executed (used in error messages)lineNumber
- the line number of the source codehtmlElement
- the HTML element that will act as the contextCopyright © 2002-2013 Gargoyle Software Inc.. All Rights Reserved.