public interface ScriptingBaseScript extends ScriptingUnit, WeakReferencingObservable
Interface that represents Scripting elements.
ScriptingUnit
,
ScriptingScript
,
ScriptingDialog
,
ScriptingProject
Modifier and Type | Field and Description |
---|---|
static int |
ISOLATION_HIGH |
static int |
ISOLATION_LOW |
Modifier and Type | Method and Description |
---|---|
void |
addStderrWriter(Writer err) |
void |
addStdoutWriter(Writer out) |
void |
compile() |
String |
getIsolationGroup() |
String |
getLibrarySuffix() |
File |
getResource(String filename)
Return a resource File that is beside this script.
|
File |
getScriptFile() |
boolean |
isEnabled()
Check if the script execution is enabled.
|
void |
put(String name,
Object value) |
void |
removeStderrWriter(Writer err) |
void |
removeStdoutWriter(Writer out) |
Object |
run()
Executes the code of a ScriptBaseScript.
|
Object |
run(Object[] args)
Executes the code of a ScriptBaseScript.
|
void |
runAsTask(Object[] args)
Executes the code of a ScriptBaseScript in a separated thread
|
void |
setEnabled(boolean enabled)
Enable or disable the sript execution.
|
void |
setIsolationGroup(String group) |
void |
setLibrarySuffix(String librarySuffix) |
addPropertyChangeListener, getCreatedBy, getDescription, getFile, getFiles, getIconNames, getId, getName, getParent, getProperties, getProperty, getTypeName, getVersion, isSaved, move, remove, rename, setCreatedBy, setDescription, setName, setProperty, setSaved, setVersion
addObserver, deleteObserver, deleteObservers
static final int ISOLATION_LOW
static final int ISOLATION_HIGH
boolean isEnabled()
void setEnabled(boolean enabled)
enabled
- Object run()
Object run(Object[] args)
args
- Contains the input parameters to run the ScriptBaseScript.void runAsTask(Object[] args)
args
- Contains the input parameters to run the ScriptBaseScript.void compile() throws ScriptingRunningException
ScriptingRunningException
File getResource(String filename)
filename
- File getScriptFile()
String getLibrarySuffix()
void setLibrarySuffix(String librarySuffix)
void addStdoutWriter(Writer out)
void addStderrWriter(Writer err)
void removeStdoutWriter(Writer out)
void removeStderrWriter(Writer err)
void setIsolationGroup(String group)
String getIsolationGroup()