public interface ScriptingScript extends ScriptingBaseScript, Script
Interface that represents a single script without window dialog.
ScriptingUnit,
ScriptingBaseScriptISOLATION_HIGH, ISOLATION_LOW| Modifier and Type | Method and Description |
|---|---|
String |
getCode()
Returns the ScriptingScript's code.
|
String |
getLangName()
Returns the languange in which the ScriptingScript is written.
|
String |
getMainName()
Returns the name of the main function in the ScriptingScript's code
|
String |
getMimeType() |
Object |
invokeFunction(String name,
Object[] args)
Executes a function from the Script's code
|
Object |
invokeMethod(Object obj,
String name,
Object[] args)
Executes a method from the Script's code
|
void |
save()
Persists the current status of a ScriptingScript with the content associated.
|
void |
setCode(String code)
Sets a the code associated with a ScriptingScript.
|
void |
setMainName(String mainName)
Stablishes a new main main function in the ScriptingScript's code.
|
addStderrWriter, addStdoutWriter, compile, getIsolation, getLibrarySuffix, getResource, getScriptFile, isEnabled, put, removeStderrWriter, removeStdoutWriter, run, run, runAsTask, setEnabled, setIsolation, setLibrarySuffixaddPropertyChangeListener, getCreatedBy, getDescription, getFile, getFiles, getIconNames, getId, getName, getParent, getTypeName, getVersion, isSaved, move, remove, rename, setCreatedBy, setDescription, setName, setSaved, setVersionaddObserver, deleteObserver, deleteObserversgetName, getTypeName, putString getLangName()
String getCode()
void setCode(String code)
code - String that contains the new code.String getMainName()
void setMainName(String mainName)
mainName - String that contains the new main function name.void save()
Object invokeMethod(Object obj, String name, Object[] args) throws NoSuchMethodException
obj - this Object represents the script's codename - method's name to executeargs - input parameters of the methodNoSuchMethodException - If there isn't a main function to begin the executionObject invokeFunction(String name, Object[] args) throws NoSuchMethodException
invokeFunction in interface Scriptname - method's name to executeargs - input parameters of the methodNoSuchMethodException - If there isn't a main function to begin the executionString getMimeType()