| Issue 34: | introduce simple form of and() and or() operations | |
| 1 person starred this issue and may be notified of changes. | Back to list |
for instance:
eq(sp.getSourceName(), sourceName).or().neq(sp.getSourceName(), "qqq")
it can be implemented as follows:
class ConditionalExpression {
UncompleteConditionalExpression or() {
return new UncompleteConditionalExpression(OR, this);
}
}
UncompleteConditionalExpression {
Operator operation;
ConditionalExpression left;
ConditionalExpression neq(left, right) {
return new ConditionalExpression(operation, this.left,
new ConditionalExpression(NEQ, left, right));
}
}
Dec 29, 2008
Project Member
#1
eric.bot...@gmail.com
Status:
WontFix
|