Debian Codegraph @

net/sf/saxon/tree/iter/ReversibleIterator.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.iter;
9
10 import net.sf.saxon.om.Item;
11 import net.sf.saxon.om.SequenceIterator;
12
13
14 /**
15 * A ReversibleIterator is an interface implemented by any SequenceIterator that is
16 * able to deliver items in reverse order (or to supply another iterator that can
17 * do so).
18 */
19
20 public interface ReversibleIterator<T extends Item<?>> extends SequenceIterator<T> {
21
22 /**
23 * Get a new SequenceIterator that returns the same items in reverse order.
24 * If this SequenceIterator is an AxisIterator, then the returned SequenceIterator
25 * must also be an AxisIterator.
26 *
27 * @return an iterator over the items in reverse order
28 */
29
30 SequenceIterator<T> getReverseIterator();
31
32 }
33