Package org.eclipse.ease
Interface IReplEngine
- All Superinterfaces:
IScriptEngine
- All Known Implementing Classes:
AbstractReplScriptEngine
,JythonScriptEngine
,NashornScriptEngine
,Py4jDebuggerEngine
,Py4jScriptEngine
,RhinoScriptEngine
public interface IReplEngine extends IScriptEngine
-
Field Summary
Fields inherited from interface org.eclipse.ease.IScriptEngine
TRACE_SCRIPT_ENGINE
-
Method Summary
Modifier and Type Method Description Collection<EaseDebugVariable>
getDefinedVariables()
Get variables defined on the top level scope of the script engine.EaseDebugVariable
getLastExecutionResult()
Get the result of the last script execution.boolean
getTerminateOnIdle()
Get termination condition when engine is idle.ScriptObjectType
getType(Object object)
Get type information on a given script object.void
setTerminateOnIdle(boolean terminate)
Set a marker that the interpreter should terminate instead entering IDLE mode.String
toString(Object object)
Get the String representation of a script object.Methods 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, registerJar, removeExecutionListener, schedule, setCloseStreamsOnTerminate, setErrorStream, setInputStream, setOutputStream, setVariable, terminate, terminateCurrent
-
Method Details
-
setTerminateOnIdle
void setTerminateOnIdle(boolean terminate)Set a marker that the interpreter should terminate instead entering IDLE mode. If set, the interpreter will execute all pending requests and terminate afterwards.- Parameters:
terminate
-true
to request termination
-
getTerminateOnIdle
boolean getTerminateOnIdle()Get termination condition when engine is idle.- Returns:
true
when engine is terminated when idle
-
getDefinedVariables
Collection<EaseDebugVariable> getDefinedVariables()Get variables defined on the top level scope of the script engine.- Returns:
- defined variables
-
getType
Get type information on a given script object.- Parameters:
object
- object to inspect- Returns:
- object type
-
toString
Get the String representation of a script object. A script object can be an execution result or a variable content.- Parameters:
object
- script object- Returns:
- String representation
-
getLastExecutionResult
EaseDebugVariable getLastExecutionResult()Get the result of the last script execution.- Returns:
- script result of last execution
-