Comparison comparison = (Comparison)constraint;
if (isPrimaryTypeConstraint(comparison.getOperand1())) {
addLiteral(comparison.getOperand2(), nodeTypeNames);
}
} else if (constraint instanceof SetCriteria) {
SetCriteria criteria = (SetCriteria)constraint;
if (isPrimaryTypeConstraint(criteria.getOperand())) {
// Look for literal values and collect them as the node type names ...
for (StaticOperand operand : criteria.getValues()) {
addLiteral(operand, nodeTypeNames);
}
}
}
}