Interface IReplEngine

All Superinterfaces:
IScriptEngine
All Known Implementing Classes:
AbstractReplScriptEngine, JythonScriptEngine, NashornScriptEngine, Py4jDebuggerEngine, Py4jScriptEngine, RhinoScriptEngine

public interface IReplEngine
extends IScriptEngine
  • 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

      ScriptObjectType getType​(Object object)
      Get type information on a given script object.
      Parameters:
      object - object to inspect
      Returns:
      object type
    • toString

      String toString​(Object object)
      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