Debian Codegraph @

net/sf/saxon/functions/Ceiling.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.om.Item;
12 import net.sf.saxon.value.NumericValue;
13
14 /**
15 * This class supports the ceiling() function
16 */
17
18 public final class Ceiling extends ScalarSystemFunction {
19
20 @Override
21 public NumericValue evaluate(Item arg, XPathContext context) {
22 return ((NumericValue)arg).ceiling();
23 }
24
25 public String getCompilerName() {
26 return "RoundingCompiler";
27 }
28
29 }
30