com.gargoylesoftware.htmlunit.javascript
Class IEConditionalCompilationScriptPreProcessor

java.lang.Object
  extended by com.gargoylesoftware.htmlunit.javascript.IEConditionalCompilationScriptPreProcessor
All Implemented Interfaces:
ScriptPreProcessor

public class IEConditionalCompilationScriptPreProcessor
extends 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: 7306 $
Author:
Ahmed Ashour, Marc Guillemot, Ronald Brill, Adam Doupe
See Also:
Microsoft Docs

Constructor Summary
IEConditionalCompilationScriptPreProcessor()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IEConditionalCompilationScriptPreProcessor

public IEConditionalCompilationScriptPreProcessor()
Method Detail

preProcess

public 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.

Specified by:
preProcess in interface ScriptPreProcessor
Parameters:
htmlPage - the page
sourceCode - the code to execute
sourceName - a name for the chunk of code that is going to be executed (used in error messages)
lineNumber - the line number of the source code
htmlElement - the HTML element that will act as the context
Returns:
the source code after pre processing


Copyright © 2002-2012 Gargoyle Software Inc.. All Rights Reserved.