public class RhinoScriptEngine extends AbstractScriptEngine
| Constructor and Description |
|---|
RhinoScriptEngine()
Creates a new Rhino interpreter.
|
| Modifier and Type | Method and Description |
|---|---|
org.mozilla.javascript.Context |
getContext() |
String |
getSaveVariableName(String name)
Return a save name to be used for a variable.
|
org.mozilla.javascript.ScriptableObject |
getScope() |
void |
registerJar(URL url)
Register a jar file and add it to the classpath.
|
void |
reset()
Resets the script engine to a fresh state (removes all variables and code history).
|
void |
setDebugger(org.mozilla.javascript.debug.Debugger debugger) |
void |
setOptimizationLevel(int level) |
void |
terminateCurrent()
Stops the currently executed piece of code.
|
addExecutionListener, executeAsync, executeSync, extractArguments, getDescription, getErrorStream, getExecutedFile, getInputStream, getOutputStream, getStackTrace, getTerminateOnIdle, getVariable, getVariables, hasVariable, inject, injectUI, isIdle, removeExecutionListener, removeVariable, setCloseStreamsOnTerminate, setEngineDescription, setErrorStream, setInputStream, setOutputStream, setTerminateOnIdle, setVariable, terminateaddJobChangeListener, belongsTo, cancel, create, done, getJobManager, getName, getPriority, getProperty, getResult, getRule, getState, getThread, isBlocking, isSystem, isUser, join, removeJobChangeListener, schedule, schedule, setName, setPriority, setProgressGroup, setProperty, setRule, setSystem, setThread, setUser, shouldRun, shouldSchedule, sleep, toString, wakeUp, wakeUp, yieldRulegetAdapterequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetName, schedulegetAdapterpublic static final String ENGINE_ID
public void setOptimizationLevel(int level)
public org.mozilla.javascript.Context getContext()
public void terminateCurrent()
IScriptEnginepublic void setDebugger(org.mozilla.javascript.debug.Debugger debugger)
public org.mozilla.javascript.ScriptableObject getScope()
public void registerJar(URL url)
IScriptEngineurl - url to load jar file frompublic void reset()
IScriptEnginereset in interface IScriptEnginereset in class AbstractScriptEnginepublic String getSaveVariableName(String name)
IScriptEnginename - variable name candidate