org.apache.bsf.debug.meta
public class JsEngineStub extends Stub implements JsEngine
| Constructor Summary | |
|---|---|
| JsEngineStub(SocketConnection con, int tid, int uid) | |
| Method Summary | |
|---|---|
| Object | eval(String docname, 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. |
| String | getThread() |
| String | getThreadGroup() |
| JsObject | getUndefinedValue()
As per ECMA specification, each JavaScript execution
defines a unique object for the undefined value. |
| boolean | isSuspended() |
| boolean | poll() |
| void | run()
Stepping commands:
run: resume execution until it finishes or a breakpoint is hit.
stepIn: steps to the next statement, considering callee's statement if any.
stepOut: steps until the current JsContext exits.
stepOver: steps to the next statement within the same JsContext. |
| void | setDebugger(JsCallbacks debugger)
Set the associated debugger. |
| void | stepIn() |
| void | stepOut() |
| void | stepOver() |
Returns: the debugger, or null if none is attached.
Parameters: debugger the debugger to be used on callbacks from the engine.