public class TclUtil extends Object
Note that this class was previously based on Jacl/TclJava, but was rewritten to improve performance. This version is more simple minded than the Tcl version.
Constructor and Description |
---|
TclUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args)
test main
|
static String |
makeList(Object[] ar)
Convert the given array of Objects to a Tcl list formatted string
and return the result.
|
static String |
makeList(String[] ar)
Convert the given array of strings to a Tcl list formatted string
and return the result.
|
static String[] |
splitList(String tclList)
Split a Tcl style list into an array of strings and
return the result.
|
public static String[] splitList(String tclList)
tclList
- a String in Tcl list format.public static String makeList(String[] ar)
ar
- an array of Strings, one element for each Tcl list itempublic static String makeList(Object[] ar)
ar
- an array of Objects, one element for each Tcl list itempublic static void main(String[] args)
Copyright © 2023 Central Laboratory of the Research Councils. All Rights Reserved.