public class JythonScriptEngine extends AbstractScriptEngine
ASYNC_FINISH, BUILD, DECORATE, INTERACTIVE, LONG, NONE, RUNNING, SHORT, SLEEPING, WAITING
TRACE_SCRIPT_ENGINE
Constructor and Description |
---|
JythonScriptEngine() |
Modifier and Type | Method and Description |
---|---|
String |
getSaveVariableName(String name)
Return a save name to be used for a variable.
|
void |
registerJar(URL url)
Register a jar file and add it to the classpath.
|
void |
setErrorStream(OutputStream errorStream)
Set the default error stream for the interpreter.
|
void |
setInputStream(InputStream inputStream)
Set the default input stream for the interpreter.
|
void |
setOutputStream(OutputStream outputStream)
Set the default output stream for the interpreter.
|
void |
terminateCurrent()
Stops the currently executed piece of code.
|
addExecutionListener, addSecurityCheck, executeAsync, executeSync, extractArguments, getCurrentScriptEngine, getDescription, getErrorStream, getExecutedFile, getInputStream, getOutputStream, getStackTrace, getTerminateOnIdle, getVariable, getVariables, hasVariable, inject, injectUI, isFinished, isIdle, join, removeExecutionListener, removeSecurityCheck, removeVariable, setCloseStreamsOnTerminate, setEngineDescription, setTerminateOnIdle, setVariable, terminate
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
getName, schedule
getAdapter
public void terminateCurrent()
IScriptEngine
public void setOutputStream(OutputStream outputStream)
IScriptEngine
setOutputStream
in interface IScriptEngine
setOutputStream
in class AbstractScriptEngine
outputStream
- default output streampublic void setInputStream(InputStream inputStream)
IScriptEngine
setInputStream
in interface IScriptEngine
setInputStream
in class AbstractScriptEngine
inputStream
- default input streampublic void setErrorStream(OutputStream errorStream)
IScriptEngine
setErrorStream
in interface IScriptEngine
setErrorStream
in class AbstractScriptEngine
errorStream
- default error streampublic String getSaveVariableName(String name)
IScriptEngine
name
- variable name candidatepublic void registerJar(URL url)
IScriptEngine
url
- url to load jar file from