Save This Page
Home » bsf-src-2.4.0 » org.apache.bsf.debug.jsdi » [javadoc | source]
org.apache.bsf.debug.jsdi
public interface: JsScript [javadoc | source]

All Implemented Interfaces:
    JsCode

Represents a script in the engine since JavaScript has code as first-class objects.
Method from org.apache.bsf.debug.jsdi.JsScript Summary:
exec
Method from org.apache.bsf.debug.jsdi.JsScript Detail:
 public Object exec(JsContext cx,
    JsObject scope) throws RemoteException
    Execute the script.

    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.