}
} else if (clazz.equals("lucene.WildcardQuery")) {
WildcardQuery wq = (WildcardQuery)q;
Term t = wq.getTerm();
setString(n, "text", getString(n, "text") + ", term=" + t);
Automaton a = WildcardQuery.toAutomaton(t);
addAutomaton(n, a);
} else if (clazz.equals("lucene.TermRangeQuery")) {
TermRangeQuery rq = (TermRangeQuery)q;
setString(n, "text", getString(n, "text") + ", inclLower=" + rq.includesLower() + ", inclUpper=" + rq.includesUpper());
Object n1 = create("node");
setString(n1, "text", "lowerTerm=" + rq.getField() + ":" + rq.getLowerTerm() + "'");
add(n, n1);
n1 = create("node");
setString(n1, "text", "upperTerm=" + rq.getField() + ":" + rq.getUpperTerm() + "'");
add(n, n1);
try {
addTermsEnum(n, TermRangeQuery.class, rq.getField(), rq);
} catch (Exception e) {
e.printStackTrace();
n1 = create("node");
setString(n1, "text", "TermEnum: Exception " + e.getMessage());
add(n, n1);
}
} else if (q instanceof AutomatonQuery) {
AutomatonQuery aq = (AutomatonQuery)q;
setString(n, "text", getString(n, "text") + ", " + aq.toString());
// get automaton
try {
java.lang.reflect.Field aField = AutomatonQuery.class.getDeclaredField("automaton");
aField.setAccessible(true);
Automaton a = (Automaton)aField.get(aq);
addAutomaton(n, a);
} catch (Exception e) {
e.printStackTrace();
Object n1 = create("node");
setString(n1, "text", "Automaton: Exception " + e.getMessage());