示例#1
0
  /**
   * Concatenates the sub exressions using Logical_And
   *
   * <p>and(and(and(0, 1), 2, 3)
   *
   * @param exprs
   * @return
   */
  public static Expr andifyLeftSided(ExprList exprs) {
    Expr result = null;

    for (Expr expr : exprs.getList()) {
      result = (result == null) ? expr : new E_LogicalAnd(result, expr);
    }

    return result;
  }