Class Py4jScriptEngine

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.py4j.internal.Py4jScriptEngine
All Implemented Interfaces:
Comparable<org.eclipse.core.internal.jobs.InternalJob>, org.eclipse.core.runtime.IAdaptable, IReplEngine, IScriptEngine
Direct Known Subclasses:
Py4jDebuggerEngine

public class Py4jScriptEngine extends AbstractReplScriptEngine
  • Field Details

    • ENGINE_ID

      public static final String ENGINE_ID
      The ID of the Engine, to match the declaration in the plugin.xml.
      See Also:
  • Constructor Details

    • Py4jScriptEngine

      public Py4jScriptEngine()
  • Method Details

    • pythonStartupComplete

      public void pythonStartupComplete(int pythonPort, IPythonSideEngine pythonSideEngine)
    • terminateCurrent

      public void terminateCurrent()
      Description copied from interface: IScriptEngine
      Stops the currently executed piece of code. Will continue to execute the next scheduled piece of code.
    • registerJar

      public void registerJar(URL url)
      Description copied from interface: IScriptEngine
      Register 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
    • getAdapter

      public <T> T getAdapter(Class<T> adapter)
      Specified by:
      getAdapter in interface org.eclipse.core.runtime.IAdaptable
      Overrides:
      getAdapter in class org.eclipse.core.runtime.PlatformObject
    • toString

      public String toString(Object object)
      Description copied from interface: IReplEngine
      Get the String representation of a script object. A script object can be an execution result or a variable content.
      Specified by:
      toString in interface IReplEngine
      Overrides:
      toString in class AbstractReplScriptEngine
      Parameters:
      object - script object
      Returns:
      String representation