|
||||||||||
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.JythonScript
public class JythonScript
Represents a Jython script.
Nested Class Summary | |
---|---|
static class |
JythonScript.JythonThread
Executes a Jython 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 | |
---|---|
JythonScript()
Initializes the script. |
|
JythonScript(javax.swing.text.Document doc)
Initializes the script. |
|
JythonScript(javax.swing.text.Document doc,
java.io.File file)
Initializes the script. |
Method Summary | |
---|---|
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. |
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 JythonScript()
public JythonScript(javax.swing.text.Document doc)
doc
- the document to use as basispublic JythonScript(javax.swing.text.Document doc, java.io.File file)
doc
- the document to use as basisfile
- the file to load (if not null)Method Detail |
---|
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)
newThread
in class Script
args
- optional commandline arguments
public static void main(java.lang.String[] args) throws java.lang.Exception
args
- the commandline arguments
java.lang.Exception
- if execution fails
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |