Class JVMCompiledScriptEngine

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.lang.jvm.compiled.JVMCompiledScriptEngine
All Implemented Interfaces:
Comparable, org.eclipse.core.runtime.IAdaptable, IScriptEngine

public class JVMCompiledScriptEngine
extends AbstractScriptEngine
implements IScriptEngine
  • Constructor Details

    • JVMCompiledScriptEngine

      public JVMCompiledScriptEngine()
  • 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.
      Specified by:
      terminateCurrent in interface IScriptEngine
    • 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.
      Specified by:
      registerJar in interface IScriptEngine
      Parameters:
      url - url to load jar file from
    • loadClass

      public static Class<?> loadClass​(Object reference) throws org.eclipse.jdt.core.JavaModelException, MalformedURLException, ClassNotFoundException
      Loads a class definition for a given source file.
      Parameters:
      reference - file name or IFile instance of the source file.
      Returns:
      class definition
      Throws:
      ClassNotFoundException - If the class was not found
      org.eclipse.jdt.core.JavaModelException
      MalformedURLException