org.apache.bsf.debug.meta
Class JsContextStub
java.lang.Object
org.apache.bsf.debug.util.Stub
org.apache.bsf.debug.meta.JsContextStub
- All Implemented Interfaces:
- java.rmi.Remote, JsContext, RemoteService
public class JsContextStub
- extends Stub
- implements JsContext
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 |
JsContextStub
public JsContextStub(SocketConnection m_con,
int tid,
int uid)
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