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

Method addNS

basex-core/src/main/java/org/basex/query/expr/constr/CElem.java:166–171  ·  view source on GitHub ↗

Adds namespaces to the namespace stack. @param qc query context @return old position in namespace stack

(final QueryContext qc)

Source from the content-addressed store, hash-verified

164 * @return old position in namespace stack
165 */
166 private int addNS(final QueryContext qc) {
167 final NSDynContext nsContext = qc.ns;
168 final int size = nsContext.size(), ns = nspaces.size();
169 for(int n = 0; n < ns; n++) nsContext.add(nspaces.name(n), nspaces.value(n));
170 return size;
171 }
172
173 @Override
174 public boolean equals(final Object obj) {

Callers 2

compileMethod · 0.95
itemMethod · 0.95

Calls 5

sizeMethod · 0.95
addMethod · 0.95
sizeMethod · 0.65
nameMethod · 0.65
valueMethod · 0.45

Tested by

no test coverage detected