@Override protected void explainExtraAttributes(ExpressionPresenter out) { if (calculator != null) { // May be null during optimizer tracing out.emitAttribute("calc", calculator.code()); } }
@Override protected void explainExtraAttributes(ExpressionPresenter out) { if (resultWhenEmpty != null) { out.emitAttribute("onEmpty", resultWhenEmpty.getBooleanValue() ? "1" : "0"); } out.emitAttribute("comp", comparer.save()); }
@Override public void exportAttributes(ExpressionPresenter out) { super.exportAttributes(out); if (ignoreNaN) { out.emitAttribute("flags", "i"); } }
/** * Diagnostic print of expression structure. The abstract expression tree * is written to the supplied output destination. */ public void export(ExpressionPresenter destination) throws XPathException { destination.startElement("error", this); destination.emitAttribute("message", exception == null ? message : exception.getMessage()); destination.emitAttribute("code", exception == null ? errorCode : exception.getErrorCodeLocalPart()); destination.emitAttribute("isTypeErr", isTypeError?"0":"1"); destination.endElement(); }
@Override public void export(ExpressionPresenter out) { out.startElement("attVal", this); out.emitAttribute("name", attributeName.getStructuredQName()); out.emitAttribute("chk", "" + requiredChecks); out.endElement(); } }
@Override public void export(ExpressionPresenter out) throws XPathException { ExpressionPresenter.ExportOptions options = (ExpressionPresenter.ExportOptions) out.getOptions(); out.startElement("origF"); out.emitAttribute("name", getFunctionName()); out.emitAttribute("arity", ""+getArity()); out.emitAttribute("pack", options.packageMap.get(component.getContainingPackage())+""); out.endElement(); } }
/** * Diagnostic print of expression structure. The abstract expression tree * is written to the supplied output destination. */ public void export(ExpressionPresenter destination) throws XPathException { destination.startElement("compareToInt", this); destination.emitAttribute("op", Token.tokens[operator]); destination.emitAttribute("val", comparand + ""); getLhsExpression().export(destination); destination.endElement(); }
public void export(ExpressionPresenter presenter) throws XPathException { presenter.startElement("p.genNode"); presenter.emitAttribute("type", itemType.toString()); equivalentExpr.export(presenter); presenter.endElement(); }
public void export(ExpressionPresenter presenter) throws XPathException { presenter.startElement("p.withUpper"); presenter.emitAttribute("axis", AxisInfo.axisName[getUpwardsAxis()]); presenter.emitAttribute("upFirst", ""+ testUpperPatternFirst); basePattern.export(presenter); upperPattern.export(presenter); presenter.endElement(); }
/** * Diagnostic print of expression structure. The abstract expression tree * is written to the supplied output destination. */ public void explain(ExpressionPresenter destination) { destination.startElement("instance"); destination.emitAttribute("of", targetType.toString(destination.getNamePool())); destination.emitAttribute("occurs", Cardinality.getOccurrenceIndicator(targetCardinality)); operand.explain(destination); destination.endElement(); }
/** * Diagnostic print of expression structure. The abstract expression tree * is written to the supplied output destination. */ public void explain(ExpressionPresenter destination) { destination.startElement("tail"); destination.emitAttribute("start", start+""); base.explain(destination); destination.endElement(); }
/** * Diagnostic print of expression structure. The abstract expression tree * is written to the supplied output destination. */ public void export(ExpressionPresenter out) throws XPathException { out.startElement("cast", this); out.emitAttribute("as", getTargetType().toExportString()); out.emitAttribute("emptiable", allowsEmpty() ? "1" : "0"); getBaseExpression().export(out); out.endElement(); }
/** * Diagnostic print of expression structure. The abstract expression tree * is written to the supplied output destination. */ public void export(ExpressionPresenter out) throws XPathException { out.startElement("castable", this); out.emitAttribute("as", getTargetType().toExportString()); out.emitAttribute("emptiable", allowsEmpty() ? "1" : "0"); getBaseExpression().export(out); out.endElement(); }
/** * Diagnostic print of expression structure. The abstract expression tree * is written to the supplied output destination. */ public void export(ExpressionPresenter destination) throws XPathException { destination.startElement("tail", this); destination.emitAttribute("start", start + ""); getBaseExpression().export(destination); destination.endElement(); }
/** * Diagnostic print of expression structure. The abstract expression tree * is written to the supplied output destination. */ public void explain(ExpressionPresenter out) { out.startElement("variable"); out.emitAttribute("name", variableQName.getDisplayName()); if (select != null) { select.explain(out); } out.endElement(); }
/** * Diagnostic print of expression structure. The abstract expression tree * is written to the supplied output destination. */ public void explain(ExpressionPresenter out) { out.startElement("checkCardinality"); out.emitAttribute("occurs", Cardinality.toString(requiredCardinality)); operand.explain(out); out.endElement(); }
/** * Diagnostic print of expression structure. The abstract expression tree * is written to the supplied output destination. * * @param out the expression presenter used to display the structure */ @Override public void explain(ExpressionPresenter out) throws XPathException { out.startElement("count"); out.emitAttribute("var", getRangeVariable().getVariableQName()); out.endElement(); }
/** * Diagnostic print of expression structure. The abstract expression tree * is written to the supplied output destination. */ public void export(ExpressionPresenter out) throws XPathException { out.startElement("docOrder", this); out.emitAttribute("intra", comparer instanceof LocalOrderComparer ? "1" : "0"); getBaseExpression().export(out); out.endElement(); }
/** * Export information about this function item to the export() or explain() output */ default void export(ExpressionPresenter out) throws XPathException { out.startElement("map"); out.emitAttribute("size", "" + size()); for (KeyValuePair kvp : keyValuePairs()) { Literal.exportAtomicValue(kvp.key, out); Literal.exportValue(kvp.value, out); } out.endElement(); }
/** * Diagnostic print of expression structure. The abstract expression tree * is written to the supplied output destination. */ public void explain(ExpressionPresenter out) { out.startElement("treat"); out.emitAttribute("as", requiredItemType.toString(out.getConfiguration().getNamePool())); operand.explain(out); out.endElement(); }