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

Method empty

basex-core/src/main/java/org/basex/query/func/fn/PlanFn.java:306–308  ·  view source on GitHub ↗

Checks if the string values of all nodes are empty. @param nodes node list @return result of check

(final GNodeList nodes)

Source from the content-addressed store, hash-verified

304 * @return result of check
305 */
306 static boolean empty(final GNodeList nodes) {
307 return ((Checks<GNode>) node -> Token.normalize(node.string()).length == 0).all(nodes);
308 }
309
310 /**
311 * Returns the children of the specified type.

Callers 4

entryMethod · 0.95
itemMethod · 0.45
optMethod · 0.45
validMethod · 0.45

Calls 3

normalizeMethod · 0.95
allMethod · 0.65
stringMethod · 0.45

Tested by

no test coverage detected