|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Object
|
+--org.apache.bsf.debug.util.Stub
|
+--org.apache.bsf.debug.meta.JsEngineStub
| 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 | |
|---|---|
JsEngineStub(SocketConnection con,
int tid,
int uid)
|
|
| Method Summary | |
|---|---|
java.lang.Object |
eval(java.lang.String docname,
java.lang.String fnOrScript,
int lineno)
Allow the debugger to evaluate an expression within the current context. |
JsContext |
getContext(int depth)
Returns the JsContext at a certain depth. |
int |
getContextCount()
Returns the count of JsContext on the current stack. |
JsCallbacks |
getDebugger()
Return the current debugger. |
JsObject |
getGlobalObject()
Any execution in JavaScript happen with respect to a global object, sort of the top-level name space for properties. |
java.lang.String |
getThread()
Returns name of the thread currently running in the engine |
java.lang.String |
getThreadGroup()
Returns name of the ThreadGroup of the thread currently running in the engine |
JsObject |
getUndefinedValue()
As per ECMA specification, each JavaScript execution defines a unique object for the undefined value. |
boolean |
isSuspended()
|
boolean |
poll()
Allows the client debugger to poll the connection. |
void |
run()
Stepping commands: run: resume execution until it finishes or a breakpoint is hit. |
void |
setDebugger(JsCallbacks debugger)
Set the associated debugger. |
void |
stepIn()
|
void |
stepOut()
|
void |
stepOver()
|
| 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 |
public JsEngineStub(SocketConnection con,
int tid,
int uid)
| Method Detail |
public boolean poll()
throws java.rmi.RemoteException
JsEngine
poll in interface JsEnginejava.rmi.RemoteException
public void setDebugger(JsCallbacks debugger)
throws java.rmi.RemoteException
setDebugger in interface JsEnginedebugger - the debugger to be used on callbacks from
the engine.
java.rmi.RemoteException
public JsCallbacks getDebugger()
throws java.rmi.RemoteException
getDebugger in interface JsEnginejava.rmi.RemoteException
public java.lang.Object eval(java.lang.String docname,
java.lang.String fnOrScript,
int lineno)
throws java.rmi.RemoteException
eval in interface JsEnginejava.rmi.RemoteException
public int getContextCount()
throws java.rmi.RemoteException
getContextCount in interface JsEnginejava.rmi.RemoteException
public java.lang.String getThread()
throws java.rmi.RemoteException
JsEngine
getThread in interface JsEnginejava.rmi.RemoteException
public java.lang.String getThreadGroup()
throws java.rmi.RemoteException
JsEngine
getThreadGroup in interface JsEnginejava.rmi.RemoteException
public JsContext getContext(int depth)
throws java.rmi.RemoteException
getContext in interface JsEnginejava.rmi.RemoteException
public JsObject getGlobalObject()
throws java.rmi.RemoteException
getGlobalObject in interface JsEnginejava.rmi.RemoteException
public JsObject getUndefinedValue()
throws java.rmi.RemoteException
getUndefinedValue in interface JsEnginejava.rmi.RemoteException
public void run()
throws java.rmi.RemoteException
run in interface JsEnginejava.rmi.RemoteException
public void stepIn()
throws java.rmi.RemoteException
stepIn in interface JsEnginejava.rmi.RemoteException
public void stepOut()
throws java.rmi.RemoteException
stepOut in interface JsEnginejava.rmi.RemoteException
public void stepOver()
throws java.rmi.RemoteException
stepOver in interface JsEnginejava.rmi.RemoteExceptionpublic boolean isSuspended()
isSuspended in interface JsEngine
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||