public class JavaScriptThreadModel extends org.mozilla.javascript.ScriptableObject implements java.lang.Runnable, ThreadModel
| Constructor and Description |
|---|
JavaScriptThreadModel() |
JavaScriptThreadModel(org.mozilla.javascript.ScriptableObject rootScope) |
| Modifier and Type | Method and Description |
|---|---|
void |
define(java.lang.Class<? extends org.mozilla.javascript.Scriptable> clazz) |
void |
destroy() |
java.lang.Object |
evaluate(java.lang.String scriptName,
java.lang.String script) |
java.lang.Object |
evaluate(java.net.URL url) |
java.lang.Object |
get(java.lang.String name) |
java.lang.String |
getClassName() |
void |
init() |
java.lang.Object |
invoke(boolean sync,
org.mozilla.javascript.Scriptable scope,
org.mozilla.javascript.Scriptable thiz,
org.mozilla.javascript.Function function,
java.lang.Object... arguments) |
java.lang.Object |
invoke(boolean sync,
org.mozilla.javascript.Scriptable scope,
org.mozilla.javascript.Scriptable thiz,
java.lang.String functionName,
java.lang.Object... arguments) |
java.lang.Object |
jsFunction_invoke(org.mozilla.javascript.Scriptable scope,
org.mozilla.javascript.Scriptable thiz,
org.mozilla.javascript.Function function) |
void |
remove(java.lang.String name) |
void |
run() |
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, equivalentValues, get, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasInstance, 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, setParentScope, setPrototype, sizepublic JavaScriptThreadModel()
public JavaScriptThreadModel(org.mozilla.javascript.ScriptableObject rootScope)
public void init()
throws java.lang.Exception
init in interface ThreadModeljava.lang.Exceptionpublic 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.Runnablepublic 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 scriptName,
java.lang.String script)
evaluate in interface ThreadModelpublic java.lang.Object jsFunction_invoke(org.mozilla.javascript.Scriptable scope,
org.mozilla.javascript.Scriptable thiz,
org.mozilla.javascript.Function function)
public java.lang.Object invoke(boolean sync,
org.mozilla.javascript.Scriptable scope,
org.mozilla.javascript.Scriptable thiz,
org.mozilla.javascript.Function function,
java.lang.Object... arguments)
invoke in interface ThreadModelpublic java.lang.Object invoke(boolean sync,
org.mozilla.javascript.Scriptable scope,
org.mozilla.javascript.Scriptable thiz,
java.lang.String functionName,
java.lang.Object... arguments)
invoke in interface ThreadModelpublic void define(java.lang.Class<? extends org.mozilla.javascript.Scriptable> clazz)
throws java.lang.reflect.InvocationTargetException,
java.lang.IllegalAccessException,
java.lang.InstantiationException
define in interface ThreadModeljava.lang.reflect.InvocationTargetExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionpublic java.lang.Object get(java.lang.String name)
get in interface ThreadModelpublic void remove(java.lang.String name)
remove in interface ThreadModelCopyright © 2008–2019 The CometD Project. All rights reserved.