org.apache.bsf.debug.jsdi

Interface JsContext

All Superinterfaces:
Remote
Known Implementing Classes:
JsContextStub, JsContextStub

public interface JsContext
extends Remote

Method Summary

JsObject
bind(String id)
JsCode
getCode()
int
getDepth()
JsEngine
getEngine()
int
getLineNumber()
JsObject
getScope()
Scope of a context.
String
getSourceName()
JsObject
getThis()

Method Details

bind

public JsObject bind(String id)
            throws RemoteException


getCode

public JsCode getCode()
            throws RemoteException


getDepth

public int getDepth()
            throws RemoteException


getEngine

public JsEngine getEngine()
            throws RemoteException


getLineNumber

public int getLineNumber()
            throws RemoteException


getScope

public JsObject getScope()
            throws RemoteException
Scope of a context. See ECMA 262, 3rd edition, 10.1.6 through 10.1.8 The scope depends on if the context represents global code, eval code, or function code. Global Code: The scope chain is cerated and initialised to contain the global objects and no others. Eval Code: The scope chain is initialized to contains the same scope chain as the calling context. This includes the same activation object and therefore the same arguments and local variables. Function Code: The scope chain is initialised to contain the activation object followed by the objects in the scope chain stored in the [[Scope]] property of the Function object.


getSourceName

public String getSourceName()
            throws RemoteException


getThis

public JsObject getThis()
            throws RemoteException