Exemple #1
0
 // add selected vars
 public void addQueryExpr(String s) {
   try {
     Expr expr = model.parseExpr(s);
     if (expr instanceof RTVar) {
       addQueryVar(expr);
     } else {
       Expr.List vars = new Expr.List();
       expr.addNamedExpr(vars);
       for (int i = 0; i < vars.size(); i++) addQueryVar(vars.expr(i));
     }
   } catch (Xcept e) {
     // ignore
   }
 }
Exemple #2
0
 // constructor
 public NotExpr(Expr e1) throws Xcept {
   super(NOT, new Expr[] {e1});
   if (e1.dataType() != BOOLEAN) throw new Xcept(this, "not expression requires BOOLEAN dataType");
 }