@Override
public String toString() {
StringBuilder builder = new StringBuilder();
builder.append("node(type(");
Joiner typeJoiner = Joiner.on(" || ");
typeJoiner.appendTo(builder, matchingNodeTypes);
builder.append(")");
if(matchingClassifiers.size() > 0) {
builder.append(", class(");
Joiner classJoiner = Joiner.on(" && ");
classJoiner.appendTo(builder, matchingClassifiers);