this.queryText = queryText; this.verbose = verbose;
boolean pass = false; SrndQuery lq = null; try { lq = QueryParser.parse(queryText); if (verbose) { System.out.println("Query: " + queryText + "\nParsed as: " + lq.toString()); } } catch (ParseException e) { if (verbose) { System.out.println("Parse exception for query:\n" + queryText + "\n" + e.getMessage()); } pass = true; } if (! pass) { failQueries.append(queryText); failQueries.append("\nParsed as: "); failQueries.append(lq.toString()); failQueries.append("\n"); }
StringBuffer failQueries = new StringBuffer(); for (int i = 0; i < exceptionQueries.length; i++ ) { new ExceptionQueryTst( exceptionQueries[i], verbose).doTest(failQueries); } return failQueries.toString();