added in operation

This commit is contained in:
Timo Westkämper 2008-02-22 22:01:27 +00:00
parent 19238ab45d
commit 6c7613e453
2 changed files with 3 additions and 3 deletions

View File

@ -158,8 +158,7 @@ public class Grammar {
}
public static <A extends Comparable<A>> BooleanExpr in(Expr<A> left, A... rest){
// TODO
return null;
return _binOp(Op.IN, left, _const(rest));
}
public static BooleanExpr like(Expr<String> left, String right){

View File

@ -128,7 +128,8 @@ public class Types {
public interface Op<RT> {
Op<Boolean> EQ = new OpImpl<Boolean>();
Op<Boolean> ISTYPEOF = new OpImpl<Boolean>();
Op<Boolean> NE = new OpImpl<Boolean>();
Op<Boolean> NE = new OpImpl<Boolean>();
Op<Boolean> IN = new OpImpl<Boolean>();
}
public interface Operation<RT> extends Expr<RT> {}