Debian Codegraph @

net/sf/saxon/functions/Unordered.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.functions;
9
10 import net.sf.saxon.expr.Expression;
11 import net.sf.saxon.expr.XPathContext;
12 import net.sf.saxon.om.Sequence;
13 import net.sf.saxon.trans.XPathException;
14
15 /**
16 * XPath 2.0 unordered() function
17 */
18
19 public class Unordered extends SystemFunction {
20
21 /**
22 * Evaluate the expression
23 *
24 * @param context the dynamic evaluation context
25 * @param arguments the values of the arguments, supplied as Sequences
26 * @return the result of the evaluation, in the form of a Sequence
27 * @throws net.sf.saxon.trans.XPathException
28 * if a dynamic error occurs during the evaluation of the expression
29 */
30 public Sequence<?> call(XPathContext context, Sequence[] arguments) throws XPathException {
31 return arguments[0];
32 }
33
34 /**
35 * Make an expression that either calls this function, or that is equivalent to a call
36 * on this function
37 *
38 * @param arguments the supplied arguments to the function call
39 * @return either a function call on this function, or an expression that delivers
40 * the same result
41 */
42 @Override
43 public Expression makeFunctionCall(Expression[] arguments) {
44 return arguments[0];
45 }
46 }
47