|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectweka.gui.scripting.Script
weka.gui.scripting.GroovyScript
public class GroovyScript
Represents a Groovy script.
| Nested Class Summary | |
|---|---|
static class |
GroovyScript.GroovyThread
Executes a Groovy script in a thread. |
| Nested classes/interfaces inherited from class weka.gui.scripting.Script |
|---|
Script.ScriptThread |
| Field Summary |
|---|
| Fields inherited from class weka.gui.scripting.Script |
|---|
BACKUP_EXTENSION |
| Constructor Summary | |
|---|---|
GroovyScript()
Initializes the script. |
|
GroovyScript(Document doc)
Initializes the script. |
|
GroovyScript(Document doc,
File file)
Initializes the script. |
|
| Method Summary | |
|---|---|
String |
getDefaultExtension()
Returns the default extension. |
ExtensionFileFilter[] |
getFilters()
Returns the extension filters for this type of script. |
static void |
main(String[] args)
Runs the script from commandline. |
Script.ScriptThread |
newThread(String[] args)
Returns a new thread to execute. |
| Methods inherited from class weka.gui.scripting.Script |
|---|
addScriptFinishedListener, empty, getContent, getFilename, getNewLine, getOptions, isModified, isRunning, listOptions, open, removeScriptFinishedListener, run, runScript, save, saveAs, setContent, setOptions, start, stop, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GroovyScript()
public GroovyScript(Document doc)
doc - the document to use as basis
public GroovyScript(Document doc,
File file)
doc - the document to use as basisfile - the file to load (if not null)| Method Detail |
|---|
public ExtensionFileFilter[] getFilters()
getFilters in class Scriptpublic String getDefaultExtension()
getDefaultExtension in class ScriptScript.saveAs(File)public Script.ScriptThread newThread(String[] args)
newThread in class Scriptargs - optional commandline arguments
public static void main(String[] args)
throws Exception
args - the commandline arguments
Exception - if execution fails
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||