Skip to content

Package: SoqlNode

SoqlNode

nameinstructionbranchcomplexitylinemethod
SoqlNode()
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 2
100%
M: 0 C: 1
100%
SoqlNode(SoqlNode)
M: 0 C: 6
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 3
100%
M: 0 C: 1
100%
getChild()
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getParent()
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
hasChild()
M: 0 C: 7
100%
M: 0 C: 2
100%
M: 0 C: 2
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
setChild(SoqlNode)
M: 0 C: 4
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 2
100%
M: 0 C: 1
100%
setParent(SoqlNode)
M: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%

Coverage

1: /*
2: * JOPA
3: * Copyright (C) 2024 Czech Technical University in Prague
4: *
5: * This library is free software; you can redistribute it and/or
6: * modify it under the terms of the GNU Lesser General Public
7: * License as published by the Free Software Foundation; either
8: * version 3.0 of the License, or (at your option) any later version.
9: *
10: * This library is distributed in the hope that it will be useful,
11: * but WITHOUT ANY WARRANTY; without even the implied warranty of
12: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13: * Lesser General Public License for more details.
14: *
15: * You should have received a copy of the GNU Lesser General Public
16: * License along with this library.
17: */
18: package cz.cvut.kbss.jopa.query.soql;
19:
20: abstract class SoqlNode implements FilterableExpression {
21:
22: SoqlNode parent;
23: SoqlNode child;
24:
25: SoqlNode() {
26: }
27:
28: SoqlNode(SoqlNode parent) {
29: this.parent = parent;
30: }
31:
32: public boolean hasChild() {
33:• return child != null;
34: }
35:
36: public SoqlNode getChild() {
37: return child;
38: }
39:
40: public SoqlNode getParent() {
41: return parent;
42: }
43:
44: public void setChild(SoqlNode child) {
45: this.child = child;
46: }
47:
48: public void setParent(SoqlNode parent) {
49: this.parent = parent;
50: }
51:
52: public abstract String getValue();
53:
54: public abstract void setValue(String value);
55:
56: public abstract String getCapitalizedValue();
57:
58: public abstract String getIri();
59:
60: public abstract void setIri(String iri);
61: }