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
bind
public JsObject bind(java.lang.String id)
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
getCode
public JsCode getCode()
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
getDepth
public int getDepth()
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
getEngine
public JsEngine getEngine()
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
getLineNumber
public int getLineNumber()
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
getScope
public 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
public java.lang.String getSourceName()
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
getThis
public JsObject getThis()
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException