Exemplo n.º 1
0
 /**
  * transform an expression that may involve aggregates into one that just uses the variable for
  * the aggregate
  */
 public static Expr replaceAggregateByVariable(Expr expr) {
   return ExprTransformer.transform(replaceAgg, expr);
 }
Exemplo n.º 2
0
 /**
  * Attempt to fold any sub-expressions of the Expr. Return an expression that is euqivalent to the
  * argument but maybe simpler.
  *
  * @param expr
  * @return Expression
  */
 public static Expr foldConstants(Expr expr) {
   return ExprTransformer.transform(new ExprTransformConstantFold(), expr);
 }