org.apache.bsf.debug.jsdi

Interface JsContext

public interface JsContext extends Remote

Method Summary
JsObjectbind(String id)
JsCodegetCode()
intgetDepth()
JsEnginegetEngine()
intgetLineNumber()
JsObjectgetScope()
Scope of a context.
StringgetSourceName()
JsObjectgetThis()

Method Detail

bind

public JsObject bind(String id)

getCode

public JsCode getCode()

getDepth

public int getDepth()

getEngine

public JsEngine getEngine()

getLineNumber

public int getLineNumber()

getScope

public JsObject getScope()
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()

getThis

public JsObject getThis()