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

Method pathNodes

basex-core/src/main/java/org/basex/query/expr/path/Path.java:358–363  ·  view source on GitHub ↗

Returns the path nodes that will result from this path. @param rt root at compile time (can be null) @param stats assess database statistics @return path nodes, or null if nodes cannot be evaluated

(final Expr rt, final boolean stats)

Source from the content-addressed store, hash-verified

356 * @return path nodes, or {@code null} if nodes cannot be evaluated
357 */
358 private ArrayList<PathNode> pathNodes(final Expr rt, final boolean stats) {
359 // ensure that path starts with document nodes
360 final Data data = data();
361 return rt != null && rt.seqType().type.instanceOf(NodeType.DOCUMENT) && data != null &&
362 data.meta.uptodate ? pathNodes(data.paths.root(), stats) : null;
363 }
364
365 /**
366 * Returns the path nodes that will result from this path.

Callers 3

pathStatsMethod · 0.95
removeEmptyMethod · 0.95
childrenMethod · 0.95

Calls 13

nodesMethod · 0.95
axisStepMethod · 0.95
descMethod · 0.95
instanceOfMethod · 0.65
seqTypeMethod · 0.65
indexMethod · 0.65
getMethod · 0.65
addMethod · 0.65
dataMethod · 0.45
rootMethod · 0.45
nodesMethod · 0.45
isEmptyMethod · 0.45

Tested by

no test coverage detected