Debian Codegraph @

net/sf/saxon/tree/linked/PrecedingOrAncestorEnumeration.java

raw symbols SCIP
1 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2 // Copyright (c) 2018 Saxonica Limited.
3 // This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
4 // If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
5 // This Source Code Form is "Incompatible With Secondary Licenses", as defined by the Mozilla Public License, v. 2.0.
6 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
7
8 package net.sf.saxon.tree.linked;
9
10 import net.sf.saxon.pattern.NodeTest;
11
12 /**
13 * This axis cannot be requested directly in an XPath expression
14 * but is used when evaluating xsl:number. It is provided because
15 * taking the union of the two axes would be very inefficient
16 */
17
18 final class PrecedingOrAncestorEnumeration extends TreeEnumeration {
19
20
21 public PrecedingOrAncestorEnumeration(NodeImpl node, NodeTest nodeTest) {
22 super(node, nodeTest);
23 advance();
24 }
25
26 protected void step() {
27 next = next.getPreviousInDocument();
28 }
29
30 }
31