/** * Diagnostic print of expression structure. The abstract expression tree * is written to the supplied outputstream. * @param out the expression presenter used to display the structure */ public final void explain(OutputStream out) { ExpressionPresenter ep = new ExpressionPresenter(getExecutable().getConfiguration(), out); explain(ep); ep.close(); }
/** * Diagnostic print of expression structure. The abstract expression tree * is written to the supplied outputstream. * @param out the expression presenter used to display the structure */ public final void explain(OutputStream out) { ExpressionPresenter ep = new ExpressionPresenter(getExecutable().getConfiguration(), out); explain(ep); ep.close(); }
/** * Diagnostic print of expression structure. The abstract expression tree * is written to the supplied outputstream. * * @param out the expression presenter used to display the structure */ public final void explain(Logger out) { ExpressionPresenter ep = new ExpressionPresenter(getConfiguration(), out); try { export(ep); } catch (XPathException e) { ep.startElement("failure"); ep.emitAttribute("message", e.getMessage()); ep.endElement(); } ep.close(); }
ExpressionPresenter expressionPresenter = new ExpressionPresenter(config, diag); sheet.explain(expressionPresenter); expressionPresenter.close();
ExpressionPresenter expressionPresenter = new ExpressionPresenter(config, diag); sheet.explain(expressionPresenter); expressionPresenter.close();
/** * Diagnostic print of expression structure. The abstract expression tree * is written to the supplied outputstream. * * @param out the expression presenter used to display the structure */ public final void explain(Logger out) { ExpressionPresenter ep = new ExpressionPresenter(getConfiguration(), out); ExpressionPresenter.ExportOptions options = new ExpressionPresenter.ExportOptions(); options.explaining = true; ep.setOptions(options); try { export(ep); } catch (XPathException e) { ep.startElement("failure"); ep.emitAttribute("message", e.getMessage()); ep.endElement(); } ep.close(); }
/** * 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(/*@NotNull*/ ExpressionPresenter out) throws XPathException { out.startElement("query"); getExecutable().getKeyManager().exportKeys(out, null); getExecutable().explainGlobalVariables(out); mainModule.explainGlobalFunctions(out); out.startElement("body"); expression.export(out); out.endElement(); out.endElement(); out.close(); }
/** * 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(); }
/** * 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(); }
/** * 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(/*@NotNull*/ ExpressionPresenter out) throws XPathException { out.startElement("query"); getExecutable().getKeyManager().exportKeys(out, null); getExecutable().explainGlobalVariables(out); mainModule.explainGlobalFunctions(out); out.startElement("body"); expression.export(out); out.endElement(); out.endElement(); out.close(); }
presenter.close();