public interface JsEngine
extends java.rmi.Remote
| Modifier and Type | Method and Description |
|---|---|
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() |
boolean poll()
throws java.rmi.RemoteException
java.rmi.RemoteExceptionvoid setDebugger(JsCallbacks debugger) throws java.rmi.RemoteException
debugger - the debugger to be used on callbacks from
the engine.java.rmi.RemoteExceptionJsCallbacks getDebugger() throws java.rmi.RemoteException
java.rmi.RemoteExceptionjava.lang.Object eval(java.lang.String docname,
java.lang.String fnOrScript,
int lineno)
throws java.rmi.RemoteException
java.rmi.RemoteExceptionint getContextCount()
throws java.rmi.RemoteException
java.rmi.RemoteExceptionjava.lang.String getThread()
throws java.rmi.RemoteException
java.rmi.RemoteExceptionjava.lang.String getThreadGroup()
throws java.rmi.RemoteException
java.rmi.RemoteExceptionJsContext getContext(int depth) throws java.rmi.RemoteException
java.rmi.RemoteExceptionJsObject getGlobalObject() throws java.rmi.RemoteException
java.rmi.RemoteExceptionJsObject getUndefinedValue() throws java.rmi.RemoteException
java.rmi.RemoteExceptionvoid run()
throws java.rmi.RemoteException
java.rmi.RemoteExceptionvoid stepIn()
throws java.rmi.RemoteException
java.rmi.RemoteExceptionvoid stepOut()
throws java.rmi.RemoteException
java.rmi.RemoteExceptionvoid stepOver()
throws java.rmi.RemoteException
java.rmi.RemoteExceptionboolean isSuspended()
throws java.rmi.RemoteException
java.rmi.RemoteException