Debian Codegraph @

net/sf/saxon/expr/sort/SortKeyEvaluator.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.expr.sort;
9
10 import net.sf.saxon.expr.XPathContext;
11 import net.sf.saxon.trans.XPathException;
12 import net.sf.saxon.value.AtomicValue;
13
14 /**
15 * Callback interface used to evaluate sort keys. An instance of this class is passed to the
16 * SortedIterator, and is used whenever a sort key value needs to be computed.
17 */
18
19 public interface SortKeyEvaluator {
20
21 /**
22 * Evaluate the n'th sort key of the context item
23 */
24
25 /*@Nullable*/
26 AtomicValue evaluateSortKey(int n, XPathContext context) throws XPathException;
27 }
28