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.EaseDebugVariablegetLastExecutionResult()Get the result of the last script execution.booleangetTerminateOnIdle()Get termination condition when engine is idle.ScriptObjectTypegetType(Object object)Get type information on a given script object.voidsetTerminateOnIdle(boolean terminate)Set a marker that the interpreter should terminate instead entering IDLE mode.StringtoString(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-trueto request termination
-
getTerminateOnIdle
boolean getTerminateOnIdle()Get termination condition when engine is idle.- Returns:
truewhen 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
-