public interface ScriptingScript extends ScriptingBaseScript, Script
Interface that represents a single script without window dialog.
ScriptingUnit
,
ScriptingBaseScript
ISOLATION_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, getIsolationGroup, getLibrarySuffix, getResource, getScriptFile, isEnabled, put, removeStderrWriter, removeStdoutWriter, run, run, runAsTask, setEnabled, setIsolationGroup, setLibrarySuffix
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
getName, getTypeName, put
String 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 Script
name
- method's name to executeargs
- input parameters of the methodNoSuchMethodException
- If there isn't a main function to begin the executionString getMimeType()