public class GroovyScript extends Script
Modifier and Type | Class and Description |
---|---|
static class |
GroovyScript.GroovyThread
Executes a Groovy script in a thread.
|
Script.ScriptThread
BACKUP_EXTENSION
Constructor and Description |
---|
GroovyScript()
Initializes the script.
|
GroovyScript(javax.swing.text.Document doc)
Initializes the script.
|
GroovyScript(javax.swing.text.Document doc,
java.io.File file)
Initializes the script.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDefaultExtension()
Returns the default extension.
|
ExtensionFileFilter[] |
getFilters()
Returns the extension filters for this type of script.
|
static void |
main(java.lang.String[] args)
Runs the script from commandline.
|
Script.ScriptThread |
newThread(java.lang.String[] args)
Returns a new thread to execute.
|
addScriptFinishedListener, empty, getContent, getFilename, getNewLine, getOptions, isModified, isRunning, listOptions, open, removeScriptFinishedListener, run, runScript, save, saveAs, setContent, setOptions, start, stop, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
makeCopy
public GroovyScript()
public GroovyScript(javax.swing.text.Document doc)
doc
- the document to use as basispublic GroovyScript(javax.swing.text.Document doc, java.io.File file)
doc
- the document to use as basisfile
- the file to load (if not null)public ExtensionFileFilter[] getFilters()
getFilters
in class Script
public java.lang.String getDefaultExtension()
getDefaultExtension
in class Script
Script.saveAs(File)
public Script.ScriptThread newThread(java.lang.String[] args)
public static void main(java.lang.String[] args) throws java.lang.Exception
args
- the commandline argumentsjava.lang.Exception
- if execution fails