Class JythonScriptEngine
java.lang.Object
org.eclipse.core.runtime.PlatformObject
org.eclipse.core.internal.jobs.InternalJob
org.eclipse.core.runtime.jobs.Job
org.eclipse.ease.AbstractScriptEngine
org.eclipse.ease.AbstractReplScriptEngine
org.eclipse.ease.lang.python.jython.JythonScriptEngine
- All Implemented Interfaces:
Comparable,org.eclipse.core.runtime.IAdaptable,IReplEngine,IScriptEngine
public class JythonScriptEngine extends AbstractReplScriptEngine
-
Field Summary
Fields inherited from class org.eclipse.core.runtime.jobs.Job
ASYNC_FINISH, BUILD, DECORATE, INTERACTIVE, LONG, NONE, RUNNING, SHORT, SLEEPING, WAITINGFields inherited from interface org.eclipse.ease.IScriptEngine
TRACE_SCRIPT_ENGINE -
Constructor Summary
Constructors Constructor Description JythonScriptEngine() -
Method Summary
Modifier and Type Method Description voidregisterJar(URL url)Register a jar file and add it to the classpath.voidsetErrorStream(OutputStream errorStream)Set the default error stream for the interpreter.voidsetInputStream(InputStream inputStream)Set the default input stream for the interpreter.voidsetOutputStream(OutputStream outputStream)Set the default output stream for the interpreter.voidterminateCurrent()Stops the currently executed piece of code.StringtoString(Object object)Get the String representation of a script object.Methods inherited from class org.eclipse.ease.AbstractReplScriptEngine
getDefinedVariables, getLastExecutionResult, getTerminateOnIdle, getType, setTerminateOnIdle, terminateMethods inherited from class org.eclipse.ease.AbstractScriptEngine
addExecutionListener, addSecurityCheck, execute, getCurrentScriptEngine, getDescription, getErrorStream, getExecutedFile, getInputStream, getLaunch, getMonitor, getOutputStream, getStackTrace, getVariable, getVariables, hasVariable, inject, isFinished, joinEngine, joinEngine, removeExecutionListener, setCloseStreamsOnTerminate, setEngineDescription, setExecutionRootFile, setLaunch, setVariableMethods inherited from class org.eclipse.core.runtime.jobs.Job
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, yieldRuleMethods inherited from class org.eclipse.core.internal.jobs.InternalJob
compareToMethods inherited from class org.eclipse.core.runtime.PlatformObject
getAdapterMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.ease.IScriptEngine
addExecutionListener, addSecurityCheck, execute, getDescription, getErrorStream, getExecutedFile, getInputStream, getLaunch, getMonitor, getName, getOutputStream, getVariable, getVariables, hasVariable, inject, isFinished, joinEngine, joinEngine, removeExecutionListener, schedule, setCloseStreamsOnTerminate, setVariable
-
Field Details
-
ENGINE_ID
- See Also:
- Constant Field Values
-
-
Constructor Details
-
JythonScriptEngine
public JythonScriptEngine()
-
-
Method Details
-
terminateCurrent
public void terminateCurrent()Description copied from interface:IScriptEngineStops the currently executed piece of code. Will continue to execute the next scheduled piece of code. -
setOutputStream
Description copied from interface:IScriptEngineSet the default output stream for the interpreter.- Specified by:
setOutputStreamin interfaceIScriptEngine- Overrides:
setOutputStreamin classAbstractScriptEngine- Parameters:
outputStream- default output stream
-
setInputStream
Description copied from interface:IScriptEngineSet the default input stream for the interpreter.- Specified by:
setInputStreamin interfaceIScriptEngine- Overrides:
setInputStreamin classAbstractScriptEngine- Parameters:
inputStream- default input stream
-
setErrorStream
Description copied from interface:IScriptEngineSet the default error stream for the interpreter.- Specified by:
setErrorStreamin interfaceIScriptEngine- Overrides:
setErrorStreamin classAbstractScriptEngine- Parameters:
errorStream- default error stream
-
registerJar
Description copied from interface:IScriptEngineRegister a jar file and add it to the classpath. After registering, classes within the jar file shall be usable within the script.- Parameters:
url- url to load jar file from
-
toString
Description copied from interface:IReplEngineGet the String representation of a script object. A script object can be an execution result or a variable content.- Specified by:
toStringin interfaceIReplEngine- Overrides:
toStringin classAbstractReplScriptEngine- Parameters:
object- script object- Returns:
- String representation
-