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)
| 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. |