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() |
int |
getIsolation() |
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 |
setIsolation(int isolation) |
void |
setLibrarySuffix(String librarySuffix) |
addPropertyChangeListener, getCreatedBy, getDescription, getFile, getFiles, getIconNames, getId, getName, getParent, getTypeName, getVersion, isSaved, move, remove, rename, setCreatedBy, setDescription, setName, 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 setIsolation(int isolation)
int getIsolation()