/** * Diagnostic method: display a representation of the compiled query on the selected output * stream. * * @param out an ExpressionPresenter to which the XML representation of the compiled query will be * sent */ public void explain(ExpressionPresenter out) { out.startElement("query"); staticContext.getExecutable().getKeyManager().explainKeys(out); staticContext.getExecutable().explainGlobalVariables(out); staticContext.explainGlobalFunctions(out); out.startElement("body"); expression.explain(out); out.endElement(); out.endElement(); out.close(); }