All Packages Class Hierarchy This Package Previous Next Index
Class KQMLLayer.takeOffList
KQMLLayer.takeOffList
- public class takeOffList
Utility to take off the left, right parenthesis and return the content as a Vector
The quote expression '(a b) will be converted to (quote (a b)).
The comma expression `(a b) will be converted to (listof (quote a) b).
In the same line, the comma expression `a will be converted to (listof (quote a)).
(a b (c d) ((e) (f g))) will be parsed to a Vector whose elements are
a,b,(c d),((e) (f g))
-
takeOffList()
- Default constructor
-
takeOffList(String)
- Constructor with string to be parsed
-
convertCommaToSpace(String)
-
-
convertStandardForm(String)
-
-
findCloseParen(String)
-
-
findNextSpace(String)
-
-
main(String[])
-
-
toReadString()
-
takeOffList
public takeOffList()
- Default constructor
takeOffList
public takeOffList(String str) throws ParseException
- Constructor with string to be parsed
- Parameters:
- str - String to be parsed
- Throws: ParseException
- if unpaired open,closed parenthesis
convertStandardForm
protected String convertStandardForm(String str) throws ParseException
findCloseParen
protected int findCloseParen(String str)
findNextSpace
protected int findNextSpace(String str)
convertCommaToSpace
protected String convertCommaToSpace(String str)
toReadString
public String toReadString()
main
public static void main(String args[])
All Packages Class Hierarchy This Package Previous Next Index