public class RhinoScriptEngine extends AbstractReplScriptEngine
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ENGINE_ID |
ASYNC_FINISH, BUILD, DECORATE, INTERACTIVE, LONG, NONE, RUNNING, SHORT, SLEEPING, WAITINGTRACE_SCRIPT_ENGINE| Constructor and Description |
|---|
RhinoScriptEngine()
Creates a new Rhino interpreter.
|
| Modifier and Type | Method and Description |
|---|---|
static org.mozilla.javascript.Context |
getContext() |
ScriptStackTrace |
getExceptionStackTrace() |
org.mozilla.javascript.ScriptableObject |
getScope()
Method to get the global scope of this engine.
|
ScriptObjectType |
getType(java.lang.Object object)
Get type information on a given script object
|
java.util.Map<java.lang.String,java.lang.Object> |
getVariables(org.mozilla.javascript.Scriptable scope) |
void |
registerJar(java.net.URL url)
Register a jar file and add it to the classpath.
|
void |
setOptimizationLevel(int level) |
void |
terminateCurrent()
Stops the currently executed piece of code.
|
java.lang.String |
toString(java.lang.Object object)
Get the String representation of a script object.
|
getDefinedVariables, getLastExecutionResult, getTerminateOnIdle, isIdle, setTerminateOnIdle, terminateaddExecutionListener, addSecurityCheck, executeAsync, executeSync, extractArguments, getCurrentScriptEngine, getDescription, getErrorStream, getExecutedFile, getInputStream, getOutputStream, getStackTrace, getVariable, getVariables, hasVariable, inject, injectUI, isFinished, join, removeExecutionListener, removeSecurityCheck, setCloseStreamsOnTerminate, setEngineDescription, setErrorStream, setExecutionRootFile, setInputStream, setOutputStream, setVariableaddJobChangeListener, 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, yieldRulegetAdapterequals, getClass, hashCode, notify, notifyAll, wait, wait, waitaddExecutionListener, addSecurityCheck, executeAsync, executeSync, getDescription, getErrorStream, getExecutedFile, getInputStream, getName, getOutputStream, getVariable, getVariables, hasVariable, inject, injectUI, isFinished, join, removeExecutionListener, removeSecurityCheck, schedule, setCloseStreamsOnTerminate, setErrorStream, setInputStream, setOutputStream, setVariablegetAdapterpublic static final java.lang.String ENGINE_ID
public static org.mozilla.javascript.Context getContext()
public void setOptimizationLevel(int level)
public ScriptStackTrace getExceptionStackTrace()
public void terminateCurrent()
IScriptEnginepublic void registerJar(java.net.URL url)
IScriptEngineurl - url to load jar file frompublic java.util.Map<java.lang.String,java.lang.Object> getVariables(org.mozilla.javascript.Scriptable scope)
public org.mozilla.javascript.ScriptableObject getScope()
public ScriptObjectType getType(java.lang.Object object)
IReplEnginegetType in interface IReplEnginegetType in class AbstractReplScriptEngineobject - object to inspectpublic java.lang.String toString(java.lang.Object object)
IReplEnginetoString in interface IReplEnginetoString in class AbstractReplScriptEngineobject - script object