com.meterware.httpunit.dom
Class AbstractDomComponent

java.lang.Object
  extended by org.mozilla.javascript.ScriptableObject
      extended by com.meterware.httpunit.javascript.ScriptingEngineImpl
          extended by com.meterware.httpunit.dom.AbstractDomComponent
All Implemented Interfaces:
ScriptingEngine, ScriptingEventHandler, ScriptingHandler, java.io.Serializable, org.mozilla.javascript.ConstProperties, org.mozilla.javascript.debug.DebuggableObject, org.mozilla.javascript.Scriptable
Direct Known Subclasses:
DomWindow, NodeImpl

public abstract class AbstractDomComponent
extends ScriptingEngineImpl
implements org.mozilla.javascript.Scriptable

Author:
Russell Gold
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.mozilla.javascript.ScriptableObject
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST
 
Fields inherited from interface org.mozilla.javascript.Scriptable
NOT_FOUND
 
Constructor Summary
AbstractDomComponent()
           
 
Method Summary
 void clearCaches()
          Clears any cached values, permitting them to be recomputed as needed.
protected static java.lang.String createAnonymousFunctionName()
           
 java.lang.Object get(java.lang.String propertyName, org.mozilla.javascript.Scriptable scriptable)
           
 java.lang.String getClassName()
           
protected  java.lang.String getJavaPropertyName(java.lang.String propertyName)
           
 boolean has(java.lang.String name, org.mozilla.javascript.Scriptable start)
           
 ScriptingEngine newScriptingEngine(ScriptableDelegate child)
          Returns a new scripting engine for the specified delegate.
 void put(java.lang.String propertyName, org.mozilla.javascript.Scriptable initialObject, java.lang.Object value)
           
 
Methods inherited from class com.meterware.httpunit.javascript.ScriptingEngineImpl
clearErrorMessages, discardDocumentWriteBuffer, doEvent, doEventScript, evaluateExpression, getDocumentWriteBuffer, getErrorMessages, handleEvent, handleScriptException, runScript, supportsScriptLanguage
 
Methods inherited from class org.mozilla.javascript.ScriptableObject
associateValue, avoidObjectDetection, callMethod, callMethod, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, equivalentValues, get, getAllIds, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, has, hasInstance, hasProperty, hasProperty, isConst, isGetterOrSetter, isSealed, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setParentScope, setPrototype
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.mozilla.javascript.Scriptable
delete, delete, get, getDefaultValue, getIds, getParentScope, getPrototype, has, hasInstance, put, setParentScope, setPrototype
 

Constructor Detail

AbstractDomComponent

public AbstractDomComponent()
Method Detail

getClassName

public java.lang.String getClassName()
Specified by:
getClassName in interface org.mozilla.javascript.Scriptable
Specified by:
getClassName in class org.mozilla.javascript.ScriptableObject

newScriptingEngine

public ScriptingEngine newScriptingEngine(ScriptableDelegate child)
Description copied from interface: ScriptingEngine
Returns a new scripting engine for the specified delegate.

Specified by:
newScriptingEngine in interface ScriptingEngine

clearCaches

public void clearCaches()
Description copied from interface: ScriptingEngine
Clears any cached values, permitting them to be recomputed as needed.

Specified by:
clearCaches in interface ScriptingEngine
Specified by:
clearCaches in interface ScriptingHandler

has

public boolean has(java.lang.String name,
                   org.mozilla.javascript.Scriptable start)
Specified by:
has in interface org.mozilla.javascript.Scriptable
Overrides:
has in class org.mozilla.javascript.ScriptableObject

get

public java.lang.Object get(java.lang.String propertyName,
                            org.mozilla.javascript.Scriptable scriptable)
Specified by:
get in interface org.mozilla.javascript.Scriptable
Overrides:
get in class org.mozilla.javascript.ScriptableObject

getJavaPropertyName

protected java.lang.String getJavaPropertyName(java.lang.String propertyName)

put

public void put(java.lang.String propertyName,
                org.mozilla.javascript.Scriptable initialObject,
                java.lang.Object value)
Specified by:
put in interface org.mozilla.javascript.Scriptable
Overrides:
put in class org.mozilla.javascript.ScriptableObject

createAnonymousFunctionName

protected static java.lang.String createAnonymousFunctionName()


Copyright © 2011. All Rights Reserved.