Class Py4jScriptEngine
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.python.py4j.internal.Py4jScriptEngine
- All Implemented Interfaces:
Comparable
,org.eclipse.core.runtime.IAdaptable
,IReplEngine
,IScriptEngine
- Direct Known Subclasses:
Py4jDebuggerEngine
public class Py4jScriptEngine extends AbstractReplScriptEngine
-
Field Summary
Fields Modifier and Type Field Description static String
ENGINE_ID
The ID of the Engine, to match the declaration in the plugin.xml.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 Constructor Description Py4jScriptEngine()
-
Method Summary
Modifier and Type Method Description <T> T
getAdapter(Class<T> adapter)
void
pythonStartupComplete(int pythonPort, IPythonSideEngine pythonSideEngine)
void
registerJar(URL url)
Register a jar file and add it to the classpath.void
terminateCurrent()
Stops the currently executed piece of code.String
toString(Object object)
Get the String representation of a script object.Methods inherited from class org.eclipse.ease.AbstractReplScriptEngine
getDefinedVariables, getLastExecutionResult, getTerminateOnIdle, getType, setTerminateOnIdle, terminate
Methods inherited from class org.eclipse.ease.AbstractScriptEngine
addExecutionListener, addSecurityCheck, checkForCancellation, execute, extractArguments, getCurrentScriptEngine, getDescription, getErrorStream, getExecutedFile, getInputStream, getLaunch, getMonitor, getOutputStream, getStackTrace, getVariable, getVariables, hasVariable, inject, isFinished, joinEngine, joinEngine, removeExecutionListener, removeSecurityCheck, setCloseStreamsOnTerminate, setEngineDescription, setErrorStream, setExecutionRootFile, setInputStream, setLaunch, setOutputStream, setVariable
Methods inherited from class org.eclipse.core.runtime.jobs.Job
addJobChangeListener, belongsTo, cancel, create, create, createSystem, 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 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, getMonitor, getName, getOutputStream, getVariable, getVariables, hasVariable, inject, isFinished, joinEngine, joinEngine, removeExecutionListener, removeSecurityCheck, schedule, setCloseStreamsOnTerminate, setErrorStream, setInputStream, setOutputStream, setVariable
-
Field Details
-
ENGINE_ID
The ID of the Engine, to match the declaration in the plugin.xml.- See Also:
- Constant Field Values
-
-
Constructor Details
-
Py4jScriptEngine
public Py4jScriptEngine()
-
-
Method Details
-
pythonStartupComplete
-
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
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
-
getAdapter
- Specified by:
getAdapter
in interfaceorg.eclipse.core.runtime.IAdaptable
- Overrides:
getAdapter
in classorg.eclipse.core.runtime.PlatformObject
-
toString
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 interfaceIReplEngine
- Overrides:
toString
in classAbstractReplScriptEngine
- Parameters:
object
- script object- Returns:
- String representation
-