MCPcopy Create free account
hub / github.com/BaseXdb/basex / toString

Method toString

basex-core/src/main/java/org/basex/query/value/map/XQMap.java:514–527  ·  view source on GitHub ↗
(final QueryString qs)

Source from the content-addressed store, hash-verified

512 }
513
514 @Override
515 public final void toString(final QueryString qs) {
516 if(structSize() == 0) {
517 qs.token("{}");
518 } else {
519 final TokenBuilder tb = new TokenBuilder();
520 for(final Entry entry : entries()) {
521 if(!tb.moreInfo()) break;
522 final Value value = entry.value();
523 tb.add(entry.key).add(MAPASG).add(qs.error() ? value.toErrorString() : value).add(SEP);
524 }
525 qs.braced("{ ", tb.toString().replaceAll(", $", ""), " }");
526 }
527 }
528}

Callers

nothing calls this directly

Calls 11

entriesMethod · 0.95
moreInfoMethod · 0.95
addMethod · 0.95
toStringMethod · 0.95
toErrorStringMethod · 0.80
bracedMethod · 0.80
tokenMethod · 0.65
addMethod · 0.65
structSizeMethod · 0.45
valueMethod · 0.45
errorMethod · 0.45

Tested by

no test coverage detected