org.apache.bsf.engines.javascript
Class JsContextStub
- JsContext, Remote
public class JsContextStub
Insert the type's description here.
Creation date: (8/23/2001 4:16:50 PM)
JsContextStub
public JsContextStub(RhinoContextProxy rcp,
DebugFrame frame,
int frameno)
throws RemoteException
JsContextStub constructor comment.
getScope
public JsObject getScope()
throws 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.
- getScope in interface JsContext
isEvalContext
public boolean isEvalContext()
isFunctionContext
public boolean isFunctionContext()
isScriptContext
public boolean isScriptContext()
lookupName
public Object lookupName(Scriptable scopeChain,
String id)
Looks up a name in the scope chain and returns its value.
lookupName
public Object lookupName(String name)