Esempio n. 1
0
 private CompiledXQuery wrap(
     CompiledXQuery expr, WrapperFactory wrapperFactory, XQueryContext context)
     throws XPathException {
   if (wrapperFactory == null) return expr;
   Function wrapper = wrapperFactory.createWrapper(context);
   wrapper.setArguments(Collections.singletonList((Expression) expr));
   //		wrapper.setSource(expr.getSource());
   return wrapper;
 }
 /**
  * @see org.exist.xquery.Expression#resetState(boolean)
  * @param postOptimization
  */
 public void resetState(boolean postOptimization) {
   super.resetState(postOptimization);
   getArgument(0).resetState(postOptimization);
 }