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))


Constructor Index

 o takeOffList()
Default constructor
 o takeOffList(String)
Constructor with string to be parsed

Method Index

 o convertCommaToSpace(String)
 o convertStandardForm(String)
 o findCloseParen(String)
 o findNextSpace(String)
 o main(String[])
 o toReadString()

Constructors

 o takeOffList
 public takeOffList()
Default constructor

 o 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

Methods

 o convertStandardForm
 protected String convertStandardForm(String str) throws ParseException
 o findCloseParen
 protected int findCloseParen(String str)
 o findNextSpace
 protected int findNextSpace(String str)
 o convertCommaToSpace
 protected String convertCommaToSpace(String str)
 o toReadString
 public String toReadString()
 o main
 public static void main(String args[])

All Packages  Class Hierarchy  This Package  Previous  Next  Index