fun toString(field: String): String? { val buffer = StringBuilder() if (sun.reflect.misc.FieldUtil.getField() != field) { buffer.append(sun.reflect.misc.FieldUtil.getField()) buffer.append(":") } buffer.append(if (includeLower) '[' else '{') buffer.append( if (lowerTerm != null) if ("*" == Term.toString(lowerTerm)) "\\*" else Term.toString( lowerTerm ) else "*" ) buffer.append(" TO ") buffer.append( if (upperTerm != null) if ("*" == Term.toString(upperTerm)) "\\*" else Term.toString( upperTerm ) else "*" ) buffer.append(if (includeUpper) ']' else '}') return buffer.toString() }
Prints a user-readable version of this query .