/** * Diagnostic print of expression structure. The abstract expression tree * is written to the supplied output destination. */ public void export(ExpressionPresenter out) throws XPathException { exportValue(value, out); }
/** * Diagnostic print of expression structure. The abstract expression tree * is written to the supplied output destination. */ public void export(ExpressionPresenter out) throws XPathException { exportValue(value, out); }
/** * Output information about this function item to the diagnostic explain() output */ public void export(ExpressionPresenter out) throws XPathException { out.startElement("array"); out.emitAttribute("size", arrayLength() + ""); for (GroundedValue mem : members()) { Literal.exportValue(mem, out); } out.endElement(); }
/** * Output information about this function item to the diagnostic explain() output */ public void export(ExpressionPresenter out) throws XPathException { out.startElement("array"); out.emitAttribute("size", arrayLength() + ""); for (GroundedValue mem : members()) { Literal.exportValue(mem, out); } out.endElement(); }
@Override public void export(ExpressionPresenter out) throws XPathException { out.startElement("array"); out.emitAttribute("size", arrayLength() + ""); for (Object o: source) { Literal.exportValue(objectToItem(o, config), 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(); }
/** * Export any implicit arguments held in optimized form within the SystemFunction call * * @param out the export destination */ @Override public void exportAdditionalArguments(SystemFunctionCall call, ExpressionPresenter out) throws XPathException { if (call.getArity() == 1) { HashTrieMap options = new HashTrieMap(); options.initialPut(new StringValue("duplicates"), new StringValue(duplicates)); options.initialPut(new StringValue("duplicates-error-code"), new StringValue(duplicatesErrorCode)); Literal.exportValue(options, out); } } }
/** * Export any implicit arguments held in optimized form within the SystemFunction call * * @param out the export destination */ @Override public void exportAdditionalArguments(SystemFunctionCall call, ExpressionPresenter out) throws XPathException { if (call.getArity() == 1) { HashTrieMap options = new HashTrieMap(); options.initialPut(new StringValue("duplicates"), new StringValue(duplicates)); options.initialPut(new StringValue("duplicates-error-code"), new StringValue(duplicatesErrorCode)); Literal.exportValue(options, out); } } }
for (KeyValuePair kvp : ((MapItem) value).keyValuePairs()) { exportAtomicValue(kvp.key, out); exportValue(kvp.value, out); Item it; while ((it = iter.next()) != null) { exportValue(it, out);
for (KeyValuePair kvp : ((MapItem) value).keyValuePairs()) { exportAtomicValue(kvp.key, out); exportValue(kvp.value, out); out.emitAttribute("count", ((GroundedValue) value).getLength() + ""); value.iterate().forEachOrFail(it -> exportValue(it, out)); out.endElement();