public class RhinoDebuggerEngine extends RhinoScriptEngine implements IDebugEngine
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ENGINE_ID |
ASYNC_FINISH, BUILD, DECORATE, INTERACTIVE, LONG, NONE, RUNNING, SHORT, SLEEPING, WAITING
TRACE_SCRIPT_ENGINE
Constructor and Description |
---|
RhinoDebuggerEngine()
Creates a new Rhino Debugger interpreter.
|
Modifier and Type | Method and Description |
---|---|
ScriptStackTrace |
getExceptionStackTrace()
Get the stack trace of the last thrown exception.
|
ScriptStackTrace |
getStackTrace()
Get the current stack trace.
|
java.util.Collection<EaseDebugVariable> |
getVariables(java.lang.Object scope)
Get variables within a specific scope or child elements for a given object
|
static boolean |
isSimpleType(java.lang.Object value) |
java.lang.Object |
removeVariable(java.lang.String name)
Remove a variable from the scope.
|
void |
setOptimizationLevel(int level) |
void |
setupDebugger(ILaunch launch,
boolean suspendOnStartup,
boolean suspendOnScriptLoad,
boolean showDynamicCode) |
void |
setVariable(java.lang.String name,
java.lang.Object content,
org.mozilla.javascript.Scriptable scope) |
getContext, getScope, getType, getVariables, registerJar, terminateCurrent, toString
getDefinedVariables, getLastExecutionResult, getTerminateOnIdle, isIdle, setTerminateOnIdle, terminate
addExecutionListener, addSecurityCheck, executeAsync, executeSync, extractArguments, getCurrentScriptEngine, getDescription, getErrorStream, getExecutedFile, getInputStream, getOutputStream, getVariable, getVariables, hasVariable, inject, injectUI, isFinished, join, removeExecutionListener, removeSecurityCheck, setCloseStreamsOnTerminate, setEngineDescription, setErrorStream, setExecutionRootFile, setInputStream, setOutputStream, setVariable
addJobChangeListener, belongsTo, cancel, create, create, createSystem, createSystem, done, getJobGroup, getJobManager, getName, getPriority, getProperty, getResult, getRule, getState, getThread, isBlocking, isSystem, isUser, join, join, removeJobChangeListener, schedule, schedule, setJobGroup, setName, setPriority, setProgressGroup, setProperty, setRule, setSystem, setThread, setUser, shouldRun, shouldSchedule, sleep, toString, wakeUp, wakeUp, yieldRule
getAdapter
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
addExecutionListener, addSecurityCheck, executeAsync, executeSync, getDescription, getErrorStream, getExecutedFile, getInputStream, getName, getOutputStream, getVariable, getVariables, hasVariable, inject, injectUI, isFinished, join, registerJar, removeExecutionListener, removeSecurityCheck, schedule, setCloseStreamsOnTerminate, setErrorStream, setInputStream, setOutputStream, setVariable, terminate, terminateCurrent
getAdapter
public static final java.lang.String ENGINE_ID
public RhinoDebuggerEngine()
public static boolean isSimpleType(java.lang.Object value)
public java.util.Collection<EaseDebugVariable> getVariables(java.lang.Object scope)
IDebugEngine
getVariables
in interface IDebugEngine
scope
- scope or parent objectpublic java.lang.Object removeVariable(java.lang.String name)
IDebugEngine
removeVariable
in interface IDebugEngine
name
- variable to be removed.public void setVariable(java.lang.String name, java.lang.Object content, org.mozilla.javascript.Scriptable scope)
public void setOptimizationLevel(int level)
setOptimizationLevel
in class RhinoScriptEngine
public void setupDebugger(ILaunch launch, boolean suspendOnStartup, boolean suspendOnScriptLoad, boolean showDynamicCode)
setupDebugger
in interface IDebugEngine
public ScriptStackTrace getStackTrace()
IDebugEngine
getStackTrace
in interface IDebugEngine
getStackTrace
in class AbstractScriptEngine
public ScriptStackTrace getExceptionStackTrace()
IDebugEngine
getExceptionStackTrace
in interface IDebugEngine
getExceptionStackTrace
in class RhinoScriptEngine
null