public class JVMCompiledScriptEngine extends AbstractScriptEngine implements IScriptEngine
ASYNC_FINISH, BUILD, DECORATE, INTERACTIVE, LONG, NONE, RUNNING, SHORT, SLEEPING, WAITINGTRACE_SCRIPT_ENGINE| Constructor and Description |
|---|
JVMCompiledScriptEngine() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getSaveName(String identifier) |
String |
getSaveVariableName(String name)
Return a save name to be used for a variable.
|
static boolean |
isSaveName(String identifier) |
static Class<?> |
loadClass(Object reference)
Loads a class definition for a given source file.
|
void |
registerJar(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, getTerminateOnIdle, getVariable, getVariables, hasVariable, inject, injectUI, isFinished, isIdle, join, removeExecutionListener, removeSecurityCheck, removeVariable, setCloseStreamsOnTerminate, setEngineDescription, setErrorStream, setInputStream, setOutputStream, setTerminateOnIdle, setVariable, terminateaddJobChangeListener, 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, yieldRulegetAdapterequals, getClass, hashCode, notify, notifyAll, wait, wait, waitaddExecutionListener, addSecurityCheck, executeAsync, executeSync, getDescription, getErrorStream, getExecutedFile, getInputStream, getName, getOutputStream, getTerminateOnIdle, getVariable, getVariables, hasVariable, inject, injectUI, isFinished, isIdle, join, removeExecutionListener, removeSecurityCheck, removeVariable, schedule, setCloseStreamsOnTerminate, setEngineDescription, setErrorStream, setInputStream, setOutputStream, setTerminateOnIdle, setVariable, terminategetAdapterpublic void terminateCurrent()
IScriptEngineterminateCurrent in interface IScriptEnginepublic String getSaveVariableName(String name)
IScriptEnginegetSaveVariableName in interface IScriptEnginename - variable name candidatepublic static boolean isSaveName(String identifier)
public void registerJar(URL url)
IScriptEngineregisterJar in interface IScriptEngineurl - url to load jar file frompublic static Class<?> loadClass(Object reference) throws org.eclipse.jdt.core.JavaModelException, MalformedURLException, ClassNotFoundException
reference - file name or IFile instance of the source file.ClassNotFoundException - If the class was not foundorg.eclipse.jdt.core.JavaModelExceptionMalformedURLException