예제 #1
0
파일: ExprLib.java 프로젝트: apache/jena
 /**
  * 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);
 }
예제 #2
0
파일: ExprLib.java 프로젝트: apache/jena
 /**
  * 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);
 }