|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mozilla.javascript.ScriptableObject
com.meterware.httpunit.javascript.ScriptingEngineImpl
public abstract class ScriptingEngineImpl
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 | |
---|---|
ScriptingEngineImpl()
|
Method Summary | |
---|---|
static void |
clearErrorMessages()
|
protected void |
discardDocumentWriteBuffer()
|
boolean |
doEvent(java.lang.String eventScript)
Deprecated. since 1.7 - use doEventScript instead |
boolean |
doEventScript(java.lang.String eventScript)
handle the event that has the given script attached by compiling the eventScript as a function and executing it |
java.lang.Object |
evaluateExpression(java.lang.String expression)
Evaluates the specified string as JavaScript. |
protected java.lang.String |
getDocumentWriteBuffer()
|
static java.lang.String[] |
getErrorMessages()
|
boolean |
handleEvent(java.lang.String eventName)
get the event Handler script for the event e.g. |
static void |
handleScriptException(java.lang.Exception e,
java.lang.String badScript)
handle Exceptions |
java.lang.String |
runScript(java.lang.String language,
java.lang.String script)
run the given script |
boolean |
supportsScriptLanguage(java.lang.String language)
|
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, get, getAllIds, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassName, getClassPrototype, getDefaultValue, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, has, has, hasInstance, hasProperty, hasProperty, isConst, isGetterOrSetter, isSealed, put, 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 com.meterware.httpunit.scripting.ScriptingEngine |
---|
clearCaches, newScriptingEngine |
Constructor Detail |
---|
public ScriptingEngineImpl()
Method Detail |
---|
public static void clearErrorMessages()
public static java.lang.String[] getErrorMessages()
public static void handleScriptException(java.lang.Exception e, java.lang.String badScript)
e
- - the exception to handlebadScript
- - the script that caused the problempublic boolean supportsScriptLanguage(java.lang.String language)
supportsScriptLanguage
in interface ScriptingHandler
public java.lang.String runScript(java.lang.String language, java.lang.String script)
runScript
in interface ScriptingHandler
language
- - the language of the scriptscript
- - the script to runpublic boolean doEvent(java.lang.String eventScript)
doEvent
in interface ScriptingEventHandler
eventScript
- - the script to use
public boolean doEventScript(java.lang.String eventScript)
doEventScript
in interface ScriptingEventHandler
eventScript
- - the script to use
public boolean handleEvent(java.lang.String eventName)
handleEvent
in interface ScriptingEventHandler
eventName
-
public java.lang.Object evaluateExpression(java.lang.String expression)
evaluateExpression
in interface ScriptingHandler
expression
- - the expression to evaluateprotected java.lang.String getDocumentWriteBuffer()
protected void discardDocumentWriteBuffer()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |