} else if (q instanceof SpanQuery) {
SpanQuery sq = (SpanQuery)q;
Class sqlass = sq.getClass();
setString(n, "text", getString(n, "text") + ", field=" + sq.getField());
if (sqlass == SpanOrQuery.class) {
SpanOrQuery soq = (SpanOrQuery)sq;
setString(n, "text", getString(n, "text") + ", " + soq.getClauses().length + " clauses");
for (SpanQuery sq1 : soq.getClauses()) {
_explainStructure(n, sq1);
}
} else if (sqlass == SpanFirstQuery.class) {
SpanFirstQuery sfq = (SpanFirstQuery)sq;
setString(n, "text", getString(n, "text") + ", end=" + sfq.getEnd() + ", match:");