public class JythonScriptEngine 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 |
---|
JythonScriptEngine() |
Modifier and Type | Method and Description |
---|---|
void |
registerJar(java.net.URL url)
Register a jar file and add it to the classpath.
|
void |
setErrorStream(java.io.OutputStream errorStream)
Set the default error stream for the interpreter.
|
void |
setInputStream(java.io.InputStream inputStream)
Set the default input stream for the interpreter.
|
void |
setOutputStream(java.io.OutputStream outputStream)
Set the default output stream for the interpreter.
|
void |
terminateCurrent()
Stops the currently executed piece of code.
|
getDefinedVariables, getLastExecutionResult, getTerminateOnIdle, getType, isIdle, setTerminateOnIdle, terminate, toString
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, setExecutionRootFile, setLaunch, 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, setVariable
getAdapter
public static final java.lang.String ENGINE_ID
public void terminateCurrent()
IScriptEngine
public void setOutputStream(java.io.OutputStream outputStream)
IScriptEngine
setOutputStream
in interface IScriptEngine
setOutputStream
in class AbstractScriptEngine
outputStream
- default output streampublic void setInputStream(java.io.InputStream inputStream)
IScriptEngine
setInputStream
in interface IScriptEngine
setInputStream
in class AbstractScriptEngine
inputStream
- default input streampublic void setErrorStream(java.io.OutputStream errorStream)
IScriptEngine
setErrorStream
in interface IScriptEngine
setErrorStream
in class AbstractScriptEngine
errorStream
- default error streampublic void registerJar(java.net.URL url)
IScriptEngine
url
- url to load jar file from