Skip to content

Package: DummyLocation

DummyLocation

nameinstructionbranchcomplexitylinemethod
getCharacterOffset()
M: 2 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getColumnNumber()
M: 2 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getLineNumber()
M: 2 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getPublicId()
M: 2 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getSystemId()
M: 2 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
static {...}
M: 5 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%

Coverage

1: /*
2: * Copyright (c) 1997, 2021 Oracle and/or its affiliates. All rights reserved.
3: *
4: * This program and the accompanying materials are made available under the
5: * terms of the Eclipse Distribution License v. 1.0, which is available at
6: * http://www.eclipse.org/org/documents/edl-v10.php.
7: *
8: * SPDX-License-Identifier: BSD-3-Clause
9: */
10:
11: package org.jvnet.staxex.util;
12:
13: import javax.xml.stream.Location;
14:
15: /**
16: * {@link Location} that returns no info.
17: *
18: * @author Santiago.PericasGeertsen@sun.com
19: */
20: public final class DummyLocation implements Location {
21: private DummyLocation() {}
22:
23: public static final Location INSTANCE = new DummyLocation();
24:
25: @Override
26: public int getCharacterOffset() {
27: return -1;
28: }
29: @Override
30: public int getColumnNumber() {
31: return -1;
32: }
33: @Override
34: public int getLineNumber() {
35: return -1;
36: }
37: @Override
38: public String getPublicId() {
39: return null;
40: }
41: @Override
42: public String getSystemId() {
43: return null;
44: }
45: }