/** * This method completely parses a string 'rules' containing sorting rules. * * @param rules String containing the rules to be parsed. * @return A set of sorting instructions stored in a Vector. * @throws ParseException if something turned wrong during the parsing. To get details decode the * message. */ private ArrayList parseString(String rules) throws ParseException { ArrayList v = new ArrayList(); // result of the first subParseString is not absolute (may be -1 or a // positive integer). But we do not care. subParseString(false, v, 0, rules); return v; }