Beispiel #1
0
 /**
  * Diagnostic print of expression structure. The abstract expression tree is written to the
  * supplied output destination.
  */
 public void explain(ExpressionPresenter out) {
   out.startElement("documentNode");
   out.emitAttribute("validation", Validation.toString(validation));
   if (getSchemaType() != null) {
     out.emitAttribute("type", getSchemaType().getDescription());
   }
   content.explain(out);
   out.endElement();
 }
Beispiel #2
0
 /**
  * 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();
 }