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.internal.jobs.InternalJob>
,org.eclipse.core.runtime.IAdaptable
,IScriptEngine
-
Field Summary
Fields inherited from class org.eclipse.core.runtime.jobs.Job
ASYNC_FINISH, BUILD, DECORATE, INTERACTIVE, LONG, NONE, RUNNING, SHORT, SLEEPING, WAITING
Fields inherited from interface org.eclipse.ease.IScriptEngine
TRACE_SCRIPT_ENGINE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Class<?>
Loads a class definition for a given source file.void
registerJar
(URL url) Register a jar file and add it to the classpath.void
Stops the currently executed piece of code.Methods inherited from class org.eclipse.ease.AbstractScriptEngine
addExecutionListener, addSecurityCheck, execute, getCurrentScriptEngine, getDescription, getErrorStream, getExecutedFile, getInputStream, getLaunch, getOutputStream, getStackTrace, getVariable, getVariables, hasVariable, inject, isFinished, joinEngine, joinEngine, removeExecutionListener, setCloseStreamsOnTerminate, setEngineDescription, setErrorStream, setExecutionRootFile, setInputStream, setLaunch, setOutputStream, setVariable, terminate
Methods inherited from class org.eclipse.core.runtime.jobs.Job
addJobChangeListener, belongsTo, cancel, create, create, createSystem, createSystem, done, getJobGroup, getJobManager, getName, getPriority, getProperty, getResult, getRule, getState, getThread, isBlocking, isSystem, isUser, join, join, removeJobChangeListener, schedule, schedule, setJobGroup, setName, setPriority, setProgressGroup, setProperty, setRule, setSystem, setThread, setUser, shouldRun, shouldSchedule, sleep, toString, wakeUp, wakeUp, yieldRule
Methods inherited from class org.eclipse.core.internal.jobs.InternalJob
compareTo
Methods inherited from class org.eclipse.core.runtime.PlatformObject
getAdapter
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.ease.IScriptEngine
addExecutionListener, addSecurityCheck, execute, getDescription, getErrorStream, getExecutedFile, getInputStream, getLaunch, getName, getOutputStream, getVariable, getVariables, hasVariable, inject, isFinished, joinEngine, joinEngine, removeExecutionListener, schedule, setCloseStreamsOnTerminate, setErrorStream, setInputStream, setOutputStream, setVariable, terminate
-
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 interfaceIScriptEngine
-
registerJar
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 interfaceIScriptEngine
- 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 orIFile
instance of the source file.- Returns:
- class definition
- Throws:
ClassNotFoundException
- If the class was not foundorg.eclipse.jdt.core.JavaModelException
MalformedURLException
-