public class JVMCompiledScriptEngine extends AbstractScriptEngine implements IScriptEngine
ASYNC_FINISH, BUILD, DECORATE, INTERACTIVE, LONG, NONE, RUNNING, SHORT, SLEEPING, WAITING
TRACE_SCRIPT_ENGINE
Constructor and Description |
---|
JVMCompiledScriptEngine() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Class<?> |
loadClass(java.lang.Object reference)
Loads a class definition for a given source file.
|
void |
registerJar(java.net.URL url)
Register a jar file and add it to the classpath.
|
void |
terminateCurrent()
Stops the currently executed piece of code.
|
addExecutionListener, addSecurityCheck, executeAsync, executeSync, extractArguments, getCurrentScriptEngine, getDescription, getErrorStream, getExecutedFile, getInputStream, getOutputStream, getStackTrace, getVariable, getVariables, hasVariable, inject, injectUI, isFinished, join, removeExecutionListener, removeSecurityCheck, setCloseStreamsOnTerminate, setEngineDescription, setErrorStream, setExecutionRootFile, setInputStream, setOutputStream, setVariable, terminate
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
getAdapter
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
addExecutionListener, addSecurityCheck, executeAsync, executeSync, getDescription, getErrorStream, getExecutedFile, getInputStream, getName, getOutputStream, getVariable, getVariables, hasVariable, inject, injectUI, isFinished, join, removeExecutionListener, removeSecurityCheck, schedule, setCloseStreamsOnTerminate, setErrorStream, setInputStream, setOutputStream, setVariable, terminate
getAdapter
public void terminateCurrent()
IScriptEngine
terminateCurrent
in interface IScriptEngine
public void registerJar(java.net.URL url)
IScriptEngine
registerJar
in interface IScriptEngine
url
- url to load jar file frompublic static java.lang.Class<?> loadClass(java.lang.Object reference) throws org.eclipse.jdt.core.JavaModelException, java.net.MalformedURLException, java.lang.ClassNotFoundException
reference
- file name or IFile
instance of the source file.java.lang.ClassNotFoundException
- If the class was not foundorg.eclipse.jdt.core.JavaModelException
java.net.MalformedURLException