|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
All compiled scripts implement this interface.
This class encapsulates script execution relative to an object scope.
Method Summary | |
---|---|
java.lang.Object |
exec(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable scope)
Execute the script. |
Method Detail |
public java.lang.Object exec(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable scope) throws JavaScriptException
The script is executed in a particular runtime Context, which
must be associated with the current thread.
The script is executed relative to a scope--definitions and
uses of global top-level variables and functions will access
properties of the scope object. For compliant ECMA
programs, the scope must be an object that has been initialized
as a global object using Context.initStandardObjects
.
cx
- the Context associated with the current threadscope
- the scope to execute relative to
JavaScriptException
- if an uncaught JavaScript exception
occurred while executing the scriptContext.initStandardObjects(org.mozilla.javascript.ScriptableObject)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |