Debian Codegraph @

net/sf/saxon/functions/Current.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.XPathContext;
11 import net.sf.saxon.lib.NamespaceConstant;
12 import net.sf.saxon.om.Sequence;
13 import net.sf.saxon.om.StructuredQName;
14 import net.sf.saxon.trans.XPathException;
15
16 /**
17 * Implement the XSLT current() function
18 */
19
20 public class Current extends SystemFunction {
21
22 /**
23 * The name of the Current function
24 */
25
26 /*@NotNull*/ public static final StructuredQName FN_CURRENT =
27 new StructuredQName("", NamespaceConstant.FN, "current");
28
29
30 /**
31 * Evaluate the expression
32 *
33 * @param context the dynamic evaluation context
34 * @param arguments the values of the arguments, supplied as Sequences
35 * @return the result of the evaluation, in the form of a Sequence
36 * @throws net.sf.saxon.trans.XPathException
37 * if a dynamic error occurs during the evaluation of the expression
38 */
39 public Sequence<?> call(XPathContext context, Sequence[] arguments) throws XPathException {
40 throw new XPathException("Dynamic evaluation of the current() function is not supported", "XTDE1360");
41 }
42 }
43