text: public CharSequence toQueryString(EscapeQuerySyntax escapeSyntaxParser) {if (getChildren() == null || getChildren().size() == 0)return "";StringBuilder sb = new StringBuilder();String filler = "";for (QueryNode child : getChildren()) {sb.append(filler).append(child.toQueryString(escapeSyntaxParser));filler = " AND ";}if ((getParent() != null && getParent() instanceof GroupQueryNode)|| isRoot())return sb.toString();else return "( " + sb.toString() + " )";}