} 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
return ((DynamicOperandImpl) oc.getOperand()).accept(this, data);
} else {
// lower-case operand, ignore upper-case
return transformCase(oc.getOperand(), data, false);
}
} else if (operand instanceof CaseTermQuery) {
CaseTermQuery ctq = (CaseTermQuery) operand;
return transformTermQuery(new TermQuery(ctq.getTerm()), toUpperCase);
} else if (operand instanceof MatchAllQuery) {