Class NashornScriptEngine

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.javascript.nashorn.NashornScriptEngine
All Implemented Interfaces:
Comparable<org.eclipse.core.internal.jobs.InternalJob>, org.eclipse.core.runtime.IAdaptable, IReplEngine, IScriptEngine

public class NashornScriptEngine extends AbstractReplScriptEngine
  • Field Details

  • Constructor Details

    • NashornScriptEngine

      public NashornScriptEngine()
  • Method Details

    • 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
    • getType

      public ScriptObjectType getType(Object object)
      Description copied from interface: IReplEngine
      Get type information on a given script object.
      Specified by:
      getType in interface IReplEngine
      Overrides:
      getType in class AbstractReplScriptEngine
      Parameters:
      object - object to inspect
      Returns:
      object type
    • 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