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

Method loop

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

Refreshes the namespace structure. @param nsPre PRE value with namespaces @param c insertion counter

(final int nsPre, final int c)

Source from the content-addressed store, hash-verified

41 * @param c insertion counter
42 */
43 void loop(final int nsPre, final int c) {
44 if(c == 0) nspaces.root(nsPre, data);
45 while(!preStack.isEmpty() && preStack.peek() > nsPre) nspaces.close(preStack.pop());
46 }
47
48 /**
49 * Opens a new level.

Callers 1

insertMethod · 0.95

Calls 5

closeMethod · 0.65
rootMethod · 0.45
isEmptyMethod · 0.45
peekMethod · 0.45
popMethod · 0.45

Tested by

no test coverage detected