public class NashornScriptEngine extends AbstractReplScriptEngine
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 |
---|
NashornScriptEngine() |
Modifier and Type | Method and Description |
---|---|
ScriptObjectType |
getType(java.lang.Object object)
Get type information on a given script object
|
void |
registerJar(java.net.URL url)
Register a jar file and add it to the classpath.
|
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, terminate
addExecutionListener, addSecurityCheck, executeAsync, executeSync, extractArguments, getCurrentScriptEngine, getDescription, getErrorStream, getExecutedFile, getInputStream, getLaunch, getMonitor, getOutputStream, getStackTrace, getVariable, getVariables, hasVariable, inject, injectUI, isFinished, join, removeExecutionListener, removeSecurityCheck, setCloseStreamsOnTerminate, setEngineDescription, setErrorStream, setExecutionRootFile, setInputStream, setLaunch, setOutputStream, setVariable
addJobChangeListener, belongsTo, cancel, create, create, createSystem, 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, getLaunch, getMonitor, getName, getOutputStream, getVariable, getVariables, hasVariable, inject, injectUI, isFinished, join, removeExecutionListener, removeSecurityCheck, schedule, setCloseStreamsOnTerminate, setErrorStream, setInputStream, setOutputStream, setVariable
getAdapter
public static final java.lang.String ENGINE_ID
public void terminateCurrent()
IScriptEngine
public void registerJar(java.net.URL url)
IScriptEngine
url
- url to load jar file frompublic ScriptObjectType getType(java.lang.Object object)
IReplEngine
getType
in interface IReplEngine
getType
in class AbstractReplScriptEngine
object
- object to inspectpublic java.lang.String toString(java.lang.Object object)
IReplEngine
toString
in interface IReplEngine
toString
in class AbstractReplScriptEngine
object
- script object