right.accept(this, rightContext);
}
}
else {
// wrap both sides in "lower"
FunctionImpl f = new FunctionImpl() {
{
functionName = new FunctionNameImpl("lower",
parameter("lowercase", String.class),
parameter("string", String.class));
}
};
f.setName("lower");
f.setParameters(Arrays.asList(left));
f.accept(this, Arrays.asList(leftContext));
out.write(" " + type + " ");
f.setParameters(Arrays.asList(right));
f.accept(this, Arrays.asList(rightContext));
}
} catch (java.io.IOException ioe) {
throw new RuntimeException(IO_ERROR, ioe);
}