public class JavaScriptThreadModel extends org.mozilla.javascript.ScriptableObject implements Runnable, ThreadModel
Constructor and Description |
---|
JavaScriptThreadModel() |
JavaScriptThreadModel(org.mozilla.javascript.ScriptableObject rootScope) |
Modifier and Type | Method and Description |
---|---|
void |
define(Class<? extends org.mozilla.javascript.Scriptable> clazz) |
void |
destroy() |
Object |
evaluate(String scriptName,
String script) |
Object |
evaluate(URL url) |
Object |
get(String name) |
String |
getClassName() |
void |
init() |
Object |
invoke(boolean sync,
org.mozilla.javascript.Scriptable scope,
org.mozilla.javascript.Scriptable thiz,
org.mozilla.javascript.Function function,
Object... arguments) |
Object |
invoke(boolean sync,
org.mozilla.javascript.Scriptable scope,
org.mozilla.javascript.Scriptable thiz,
String functionName,
Object... arguments) |
Object |
jsFunction_invoke(org.mozilla.javascript.Scriptable scope,
org.mozilla.javascript.Scriptable thiz,
org.mozilla.javascript.Function function) |
void |
remove(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, size
public JavaScriptThreadModel()
public JavaScriptThreadModel(org.mozilla.javascript.ScriptableObject rootScope)
public void init() throws Exception
init
in interface ThreadModel
Exception
public void destroy() throws Exception
destroy
in interface ThreadModel
Exception
public String getClassName()
getClassName
in interface org.mozilla.javascript.Scriptable
getClassName
in class org.mozilla.javascript.ScriptableObject
public Object evaluate(URL url) throws IOException
evaluate
in interface ThreadModel
IOException
public Object evaluate(String scriptName, String script)
evaluate
in interface ThreadModel
public Object jsFunction_invoke(org.mozilla.javascript.Scriptable scope, org.mozilla.javascript.Scriptable thiz, org.mozilla.javascript.Function function)
public Object invoke(boolean sync, org.mozilla.javascript.Scriptable scope, org.mozilla.javascript.Scriptable thiz, org.mozilla.javascript.Function function, Object... arguments)
invoke
in interface ThreadModel
public Object invoke(boolean sync, org.mozilla.javascript.Scriptable scope, org.mozilla.javascript.Scriptable thiz, String functionName, Object... arguments)
invoke
in interface ThreadModel
public void define(Class<? extends org.mozilla.javascript.Scriptable> clazz) throws InvocationTargetException, IllegalAccessException, InstantiationException
define
in interface ThreadModel
InvocationTargetException
IllegalAccessException
InstantiationException
public Object get(String name)
get
in interface ThreadModel
public void remove(String name)
remove
in interface ThreadModel
Copyright © 2008–2016 The CometD Project. All rights reserved.