TransformConstants.TRANSFORM_LOWER_CASE);
return operand;
} else if (operand instanceof TermQuery) {
return transformTermQuery((TermQuery) operand, toUpperCase);
} else if (operand instanceof LowerCaseImpl) {
LowerCaseImpl lc = (LowerCaseImpl) operand;
if (toUpperCase) {
// upper-case operand, ignore lower-case
return transformCase(lc.getOperand(), data, true);
} else {
// lower-cased twice
return ((DynamicOperandImpl) lc.getOperand()).accept(this, data);
}
} else if (operand instanceof UpperCaseImpl) {
UpperCaseImpl oc = (UpperCaseImpl) operand;
if (toUpperCase) {
// upper-cased twice