|
GATE Version 3.1-2270 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgate.util.Jacl
public class Jacl
This class provides access to the Jacl Tcl interpreter, and caters for loading any Tcl scripts that live in the GATE source. It also serves as examples of how Tcl can be used from Java using the Jacl library (which is my excuse for those cases where there was an obvious easier way!).
Note that all GATE Tcl scripts should be in the namespace "GATE".
Constructor Summary | |
---|---|
Jacl()
Construction |
Method Summary | |
---|---|
List |
findScripts()
Locate any files named .tcl in the directory hierarchy under . |
List |
findScripts(String prelimScript)
Locate any files named .tcl in the directory hierarchy under . |
tcl.lang.Interp |
getInterp()
Get the interpreter |
void |
loadScripts()
Loads all the scripts in the GATE source. |
void |
loadScripts(List scriptPaths)
Load a list of Tcl scripts. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Jacl()
Method Detail |
---|
public tcl.lang.Interp getInterp()
public List findScripts() throws tcl.lang.TclException
tcl.lang.TclException
public List findScripts(String prelimScript) throws tcl.lang.TclException
tcl.lang.TclException
public void loadScripts(List scriptPaths) throws tcl.lang.TclException
tcl.lang.TclException
public void loadScripts() throws tcl.lang.TclException
Jacl jacl = new Jacl(); jacl.loadScripts();
tcl.lang.TclException
|
GATE Version 3.1-2270 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |