/** * Get a controller that can be used to execute functions in this compiled query. * Functions in the query module can be found using {@link QueryModule#getUserDefinedFunction}. * They can then be called directly from the Java application using {@link net.sf.saxon.expr.instruct.UserFunction#call} * The same Controller can be used for a series of function calls. Note that the Controller should only be used * in a single thread. * @param env the dynamic context for evaluation * @return a newly constructed Controller * @throws XPathException if evaluation fails with a dynamic error */ /*@NotNull*/ public Controller newController(DynamicQueryContext env) throws XPathException { Controller controller = new Controller(executable.getConfiguration(), executable); env.initializeController(controller); //controller.getBindery(getPackageData()).allocateGlobals(executable.getGlobalVariableMap()); return controller; }
/** * Get a controller that can be used to execute functions in this compiled query. * Functions in the query module can be found using {@link QueryModule#getUserDefinedFunction}. * They can then be called directly from the Java application using {@link net.sf.saxon.expr.instruct.UserFunction#call} * The same Controller can be used for a series of function calls. Note that the Controller should only be used * in a single thread. * @param env the dynamic context for evaluation * @return a newly constructed Controller * @throws XPathException if evaluation fails with a dynamic error */ /*@NotNull*/ public Controller newController(DynamicQueryContext env) throws XPathException { Controller controller = new Controller(executable.getConfiguration(), executable); env.initializeController(controller); //controller.getBindery(getPackageData()).allocateGlobals(executable.getGlobalVariableMap()); return controller; }
controller = expression.newController(context); } else { context.initializeController(controller);
controller = expression.newController(context); } else { context.initializeController(controller);
controller = expression.newController(context); } else { context.initializeController(controller);
controller = expression.newController(context); } else { context.initializeController(controller);