org.apache.bsf.debug.meta
Class JsContextStub

java.lang.Object
  extended byorg.apache.bsf.debug.util.Stub
      extended byorg.apache.bsf.debug.meta.JsContextStub
All Implemented Interfaces:
JsContext, java.rmi.Remote, RemoteService

public class JsContextStub
extends Stub
implements JsContext


Field Summary
 
Fields inherited from class org.apache.bsf.debug.util.Stub
m_con, m_revoked, m_tid, m_uid, NOT_FOUND, UNDEFINED
 
Constructor Summary
JsContextStub(SocketConnection m_con, int tid, int uid)
           
 
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()
           
 
Methods inherited from class org.apache.bsf.debug.util.Stub
addListener, completeFuture, createFuture, equals, getConnection, getTid, getUid, Init, removeListener, revoked, revokeFuture, suspendFuture, swizzle
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsContextStub

public JsContextStub(SocketConnection m_con,
                     int tid,
                     int uid)
Method Detail

bind

public JsObject bind(java.lang.String id)
              throws java.rmi.RemoteException
Specified by:
bind in interface JsContext
Throws:
java.rmi.RemoteException

getCode

public JsCode getCode()
               throws java.rmi.RemoteException
Specified by:
getCode in interface JsContext
Throws:
java.rmi.RemoteException

getDepth

public int getDepth()
             throws java.rmi.RemoteException
Specified by:
getDepth in interface JsContext
Throws:
java.rmi.RemoteException

getEngine

public JsEngine getEngine()
                   throws java.rmi.RemoteException
Specified by:
getEngine in interface JsContext
Throws:
java.rmi.RemoteException

getLineNumber

public int getLineNumber()
                  throws java.rmi.RemoteException
Specified by:
getLineNumber in interface JsContext
Throws:
java.rmi.RemoteException

getScope

public JsObject getScope()
                  throws java.rmi.RemoteException
Description copied from interface: JsContext
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.

Specified by:
getScope in interface JsContext
Throws:
java.rmi.RemoteException

getSourceName

public java.lang.String getSourceName()
                               throws java.rmi.RemoteException
Specified by:
getSourceName in interface JsContext
Throws:
java.rmi.RemoteException

getThis

public JsObject getThis()
                 throws java.rmi.RemoteException
Specified by:
getThis in interface JsContext
Throws:
java.rmi.RemoteException