org.apache.bsf.debug.jsdi
Interface JsContext

All Superinterfaces:
java.rmi.Remote
All Known Implementing Classes:
JsContextStub, JsContextStub

public interface JsContext
extends java.rmi.Remote


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

Method Detail

bind

JsObject bind(java.lang.String id)
              throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

getCode

JsCode getCode()
               throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

getDepth

int getDepth()
             throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

getEngine

JsEngine getEngine()
                   throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

getLineNumber

int getLineNumber()
                  throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

getScope

JsObject getScope()
                  throws java.rmi.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.

Throws:
java.rmi.RemoteException

getSourceName

java.lang.String getSourceName()
                               throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

getThis

JsObject getThis()
                 throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException