public static class JavaScript.Location extends ScriptingEngineImpl
| Modifier and Type | Field and Description |
|---|---|
protected com.meterware.httpunit.javascript.JavaScript.JavaScriptEngine |
_parent |
protected ScriptableDelegate |
_scriptable |
| Constructor and Description |
|---|
JavaScript.Location() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearCaches()
Clears any cached values, permitting them to be recomputed as needed.
|
Object |
get(int i,
org.mozilla.javascript.Scriptable scriptable) |
Object |
get(String propertyName,
org.mozilla.javascript.Scriptable scriptable) |
String |
getClassName() |
Object |
getDefaultValue(Class typeHint)
Returns the default value of this scriptable object.
|
boolean |
handleEvent(String eventName)
get the event Handler script for the event e.g.
|
boolean |
has(String propertyName,
org.mozilla.javascript.Scriptable scriptable) |
void |
jsFunction_replace(String urlString) |
String |
jsGet_host() |
String |
jsGet_hostname() |
String |
jsGet_href() |
String |
jsGet_pathname() |
String |
jsGet_port() |
String |
jsGet_protocol() |
String |
jsGet_search() |
void |
jsSet_href(String urlString) |
void |
jsSet_pathname(String newPath) |
void |
jsSet_search(String newSearch) |
ScriptingEngine |
newScriptingEngine(ScriptableDelegate child)
Returns a new scripting engine for the specified delegate.
|
void |
put(String propertyName,
org.mozilla.javascript.Scriptable scriptable,
Object value) |
protected JavaScript.ElementArray |
toElementArray(ScriptingHandler[] scriptables) |
String |
toString() |
protected static String |
toStringIfNotUndefined(Object object) |
clearErrorMessages, discardDocumentWriteBuffer, doEvent, doEventScript, evaluateExpression, getDocumentWriteBuffer, getErrorMessages, handleScriptException, runScript, supportsScriptLanguageassociateValue, avoidObjectDetection, callMethod, callMethod, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, equivalentValues, getAllIds, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, 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, setPrototypeprotected ScriptableDelegate _scriptable
protected com.meterware.httpunit.javascript.JavaScript.JavaScriptEngine _parent
public String getClassName()
getClassName in interface org.mozilla.javascript.ScriptablegetClassName in class org.mozilla.javascript.ScriptableObjectpublic void jsFunction_replace(String urlString) throws IOException, SAXException
IOExceptionSAXExceptionpublic String jsGet_href()
public void jsSet_href(String urlString) throws SAXException, IOException
SAXExceptionIOExceptionpublic String jsGet_protocol()
public String jsGet_host()
public String jsGet_hostname()
public String jsGet_port()
public String jsGet_pathname()
public void jsSet_pathname(String newPath) throws SAXException, IOException
SAXExceptionIOExceptionpublic String jsGet_search()
public void jsSet_search(String newSearch) throws SAXException, IOException
SAXExceptionIOExceptionpublic Object getDefaultValue(Class typeHint)
getDefaultValue in interface org.mozilla.javascript.ScriptablegetDefaultValue in class org.mozilla.javascript.ScriptableObjectpublic String toString()
public boolean handleEvent(String eventName)
handleEvent in interface ScriptingEventHandlerhandleEvent in class ScriptingEngineImpleventName - public boolean has(String propertyName, org.mozilla.javascript.Scriptable scriptable)
has in interface org.mozilla.javascript.Scriptablehas in class org.mozilla.javascript.ScriptableObjectpublic Object get(String propertyName, org.mozilla.javascript.Scriptable scriptable)
get in interface org.mozilla.javascript.Scriptableget in class org.mozilla.javascript.ScriptableObjectpublic Object get(int i, org.mozilla.javascript.Scriptable scriptable)
get in interface org.mozilla.javascript.Scriptableget in class org.mozilla.javascript.ScriptableObjectpublic void put(String propertyName, org.mozilla.javascript.Scriptable scriptable, Object value)
put in interface org.mozilla.javascript.Scriptableput in class org.mozilla.javascript.ScriptableObjectpublic ScriptingEngine newScriptingEngine(ScriptableDelegate child)
ScriptingEnginepublic void clearCaches()
ScriptingEngineprotected JavaScript.ElementArray toElementArray(ScriptingHandler[] scriptables)
Copyright © 2012. All Rights Reserved.