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

java.lang.Object
  extended by net.sourceforge.htmlunit.corejs.javascript.ScriptableObject
      extended by com.gargoylesoftware.htmlunit.javascript.SimpleScriptable
          extended by com.gargoylesoftware.htmlunit.activex.javascript.msxml.MSXMLScriptable
All Implemented Interfaces:
Serializable, Cloneable, net.sourceforge.htmlunit.corejs.javascript.ConstProperties, net.sourceforge.htmlunit.corejs.javascript.debug.DebuggableObject, net.sourceforge.htmlunit.corejs.javascript.Scriptable
Direct Known Subclasses:
XMLDOMImplementation, XMLDOMNamedNodeMap, XMLDOMNode, XMLDOMNodeList, XMLDOMParseError, XMLHTTPRequest, XSLProcessor, XSLTemplate

public class MSXMLScriptable
extends SimpleScriptable

Base class for MSXML's (ActiveX) JavaScript host objects in HtmlUnit.

Version:
$Revision: 9024 $
Author:
Frank Danek
See Also:
Serialized Form

Field Summary
 
Fields inherited from class net.sourceforge.htmlunit.corejs.javascript.ScriptableObject
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST
 
Fields inherited from interface net.sourceforge.htmlunit.corejs.javascript.Scriptable
NOT_FOUND
 
Constructor Summary
MSXMLScriptable()
           
 
Method Summary
 String getClassName()
          Returns the JavaScript class name.
 MSXMLJavaScriptEnvironment getEnvironment()
           
protected  net.sourceforge.htmlunit.corejs.javascript.Scriptable getPrototype(Class<? extends SimpleScriptable> javaScriptClass)
          Gets the prototype object for the given host class.
 SimpleScriptable makeScriptableFor(DomNode domNode)
          Builds a new the JavaScript object that corresponds to the specified object.
 void setEnvironment(MSXMLJavaScriptEnvironment environment)
           
 void setParentScope(net.sourceforge.htmlunit.corejs.javascript.Scriptable m)
          
 
Methods inherited from class com.gargoylesoftware.htmlunit.javascript.SimpleScriptable
clone, defineFunctionProperties, defineProperty, equivalentValues, get, getBrowserVersion, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getScriptableFor, getStartingScope, getTransformerScriptableFor, getWindow, getWindow, getWithPreemption, hasInstance, initParentScope, isReadOnlySettable, setCaseSensitive, setDomNode, setDomNode, setHtmlElement
 
Methods inherited from class net.sourceforge.htmlunit.corejs.javascript.ScriptableObject
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setPrototype, size
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MSXMLScriptable

public MSXMLScriptable()
Method Detail

setParentScope

public void setParentScope(net.sourceforge.htmlunit.corejs.javascript.Scriptable m)

Specified by:
setParentScope in interface net.sourceforge.htmlunit.corejs.javascript.Scriptable
Overrides:
setParentScope in class SimpleScriptable

makeScriptableFor

public SimpleScriptable makeScriptableFor(DomNode domNode)
Builds a new the JavaScript object that corresponds to the specified object.

Overrides:
makeScriptableFor in class SimpleScriptable
Parameters:
domNode - the DOM node for which a JS object should be created
Returns:
the JavaScript object

getPrototype

protected net.sourceforge.htmlunit.corejs.javascript.Scriptable getPrototype(Class<? extends SimpleScriptable> javaScriptClass)
Gets the prototype object for the given host class.

Overrides:
getPrototype in class SimpleScriptable
Parameters:
javaScriptClass - the host class
Returns:
the prototype

getClassName

public String getClassName()
Returns the JavaScript class name.

Specified by:
getClassName in interface net.sourceforge.htmlunit.corejs.javascript.Scriptable
Overrides:
getClassName in class SimpleScriptable
Returns:
the JavaScript class name

getEnvironment

public MSXMLJavaScriptEnvironment getEnvironment()
Returns:
the environment_

setEnvironment

public void setEnvironment(MSXMLJavaScriptEnvironment environment)
Parameters:
environment - the environment_ to set


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