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

Method add

basex-core/src/main/java/org/basex/data/DataPrinter.java:46–51  ·  view source on GitHub ↗

Adds the specified table entries. @param start first node to be added @param end last node to be added

(final int start, final int end)

Source from the content-addressed store, hash-verified

44 * @param end last node to be added
45 */
46 public void add(final int start, final int end) {
47 final int ps = Math.max(0, start), pe = Math.min(data.meta.size, end);
48 for(int p = ps; p < pe; ++p) add(p);
49 final byte[] ns = data.nspaces.table(ps, pe);
50 if(ns.length != 0) nsp.add(NL).add(ns).add(data.nspaces.toString(ps, pe)).add(NL);
51 }
52
53 /**
54 * Adds an entry for the specified PRE value.

Callers 2

runMethod · 0.95
toStringMethod · 0.95

Calls 15

addMethod · 0.95
concatMethod · 0.95
replaceMethod · 0.95
chopMethod · 0.95
attSizeMethod · 0.80
nsFlagMethod · 0.80
addMethod · 0.65
toStringMethod · 0.65
kindMethod · 0.65
sizeMethod · 0.65
idMethod · 0.65
nameMethod · 0.65

Tested by

no test coverage detected