Debian Codegraph @

net/sf/saxon/value/StringToDouble11.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.value;
9
10 import net.sf.saxon.type.StringToDouble;
11
12 /**
13 * Convert a string to a double using the rules of XML Schema 1.1
14 */
15 public class StringToDouble11 extends StringToDouble {
16
17 private static StringToDouble11 THE_INSTANCE = new StringToDouble11();
18
19 /**
20 * Get the singleton instance
21 *
22 * @return the singleton instance of this class
23 */
24
25 /*@NotNull*/
26 public static StringToDouble11 getInstance() {
27 return THE_INSTANCE;
28 }
29
30 protected StringToDouble11() {
31 }
32
33 @Override
34 protected double signedPositiveInfinity() {
35 return Double.POSITIVE_INFINITY;
36 }
37 }
38