|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.mozilla.javascript.ScriptableObject
org.cometd.JavaScriptThreadModel
public class JavaScriptThreadModel
The thread model object, that runs all javascript in a single thread to simulate browser's environment.
| 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 | |
|---|---|
JavaScriptThreadModel()
|
|
JavaScriptThreadModel(org.mozilla.javascript.ScriptableObject rootScope)
|
|
| Method Summary | |
|---|---|
void |
define(java.lang.Class clazz)
|
void |
destroy()
|
java.lang.Object |
evaluate(java.lang.String script)
|
java.lang.Object |
evaluate(java.net.URL url)
|
java.lang.Object |
execute(org.mozilla.javascript.Scriptable scope,
org.mozilla.javascript.Scriptable thiz,
org.mozilla.javascript.Function function,
java.lang.Object... arguments)
|
java.lang.Object |
get(java.lang.String name)
|
java.lang.String |
getClassName()
|
void |
init()
|
java.lang.Object |
jsFunction_execute(org.mozilla.javascript.Scriptable scope,
org.mozilla.javascript.Scriptable thiz,
org.mozilla.javascript.Function function)
|
void |
run()
|
| Methods inherited from class org.mozilla.javascript.ScriptableObject |
|---|
associateValue, 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, getClassPrototype, getDefaultValue, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, has, has, hasInstance, hasProperty, hasProperty, isConst, 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 |
| Constructor Detail |
|---|
public JavaScriptThreadModel()
public JavaScriptThreadModel(org.mozilla.javascript.ScriptableObject rootScope)
| Method Detail |
|---|
public void init()
throws java.lang.Exception
init in interface ThreadModeljava.lang.Exception
public void destroy()
throws java.lang.Exception
destroy in interface ThreadModeljava.lang.Exceptionpublic java.lang.String getClassName()
getClassName in interface org.mozilla.javascript.ScriptablegetClassName in class org.mozilla.javascript.ScriptableObjectpublic void run()
run in interface java.lang.Runnable
public java.lang.Object evaluate(java.net.URL url)
throws java.io.IOException
evaluate in interface ThreadModeljava.io.IOExceptionpublic java.lang.Object evaluate(java.lang.String script)
evaluate in interface ThreadModel
public java.lang.Object jsFunction_execute(org.mozilla.javascript.Scriptable scope,
org.mozilla.javascript.Scriptable thiz,
org.mozilla.javascript.Function function)
public java.lang.Object execute(org.mozilla.javascript.Scriptable scope,
org.mozilla.javascript.Scriptable thiz,
org.mozilla.javascript.Function function,
java.lang.Object... arguments)
execute in interface ThreadModel
public void define(java.lang.Class clazz)
throws java.lang.reflect.InvocationTargetException,
java.lang.IllegalAccessException,
java.lang.InstantiationException
define in interface ThreadModeljava.lang.reflect.InvocationTargetException
java.lang.IllegalAccessException
java.lang.InstantiationExceptionpublic java.lang.Object get(java.lang.String name)
get in interface ThreadModel
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||