com.gargoylesoftware.htmlunit.activex.javascript.msxml
Class MSXMLJavaScriptEnvironment

java.lang.Object
  extended by com.gargoylesoftware.htmlunit.activex.javascript.msxml.MSXMLJavaScriptEnvironment

public class MSXMLJavaScriptEnvironment
extends Object

JavaScript environment for the MSXML ActiveX library.

Version:
$Revision: 9017 $
Author:
Frank Danek

Constructor Summary
MSXMLJavaScriptEnvironment(BrowserVersion browserVersion)
          Creates an instance for the given BrowserVersion.
 
Method Summary
 Class<? extends MSXMLScriptable> getJavaScriptClass(Class<?> c)
          Gets the class of the JavaScript object for the node class.
 net.sourceforge.htmlunit.corejs.javascript.Scriptable getPrototype(Class<? extends SimpleScriptable> jsClass)
          Returns the prototype object corresponding to the specified HtmlUnit class inside the window scope.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MSXMLJavaScriptEnvironment

public MSXMLJavaScriptEnvironment(BrowserVersion browserVersion)
                           throws Exception
Creates an instance for the given BrowserVersion.

Parameters:
browserVersion - the browser version to use
Throws:
Exception - if something goes wrong
Method Detail

getJavaScriptClass

public Class<? extends MSXMLScriptable> getJavaScriptClass(Class<?> c)
Gets the class of the JavaScript object for the node class.

Parameters:
c - the node class DomNode or some subclass.
Returns:
null if none found

getPrototype

public net.sourceforge.htmlunit.corejs.javascript.Scriptable getPrototype(Class<? extends SimpleScriptable> jsClass)
Returns the prototype object corresponding to the specified HtmlUnit class inside the window scope.

Parameters:
jsClass - the class whose prototype is to be returned
Returns:
the prototype object corresponding to the specified class inside the specified scope


Copyright © 2002–2014 Gargoyle Software Inc.. All rights reserved.