• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

moosetechnology / VerveineJ / 17644910491

11 Sep 2025 12:43PM UTC coverage: 50.886% (-0.04%) from 50.929%
17644910491

push

github

web-flow
Merge pull request #163 from moosetechnology/access-candidates

Add candidates to TAccess.

1911 of 3972 branches covered (48.11%)

Branch coverage included in aggregate %.

16 of 42 new or added lines in 10 files covered. (38.1%)

4291 of 8216 relevant lines covered (52.23%)

2.1 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

58.04
/app/src/main/java/org/moosetechnology/model/famix/famixjavaentities/Access.java
1
// Automagically generated code, please do not change
2
package org.moosetechnology.model.famix.famixjavaentities;
3

4
import ch.akuhn.fame.FameDescription;
5
import ch.akuhn.fame.FamePackage;
6
import ch.akuhn.fame.FameProperty;
7
import ch.akuhn.fame.internal.MultivalueSet;
8
import java.util.*;
9
import org.moosetechnology.model.famix.famixtraits.TAccess;
10
import org.moosetechnology.model.famix.famixtraits.TAccessible;
11
import org.moosetechnology.model.famix.famixtraits.TAssociation;
12
import org.moosetechnology.model.famix.famixtraits.TSourceAnchor;
13
import org.moosetechnology.model.famix.famixtraits.TWithAccesses;
14

15

16
@FamePackage("Famix-Java-Entities")
17
@FameDescription("Access")
18
public class Access extends Entity implements TAccess {
3✔
19

20
    private TWithAccesses accessor;
21

22
    private Collection<TAccessible> candidates;
23

24
    private Boolean isWrite;
25
    
26
    private TAssociation next;
27
    
28
    private Number numberOfLinesOfCode;
29
    
30
    private TAssociation previous;
31
    
32
    private TSourceAnchor sourceAnchor;
33
    
34

35

36
    @FameProperty(name = "accessor", opposite = "accesses")
37
    public TWithAccesses getAccessor() {
38
        return accessor;
3✔
39
    }
40

41
    public void setAccessor(TWithAccesses accessor) {
42
        if (this.accessor != null) {
3✔
43
            if (this.accessor.equals(accessor)) return;
6!
44
            this.accessor.getAccesses().remove(this);
×
45
        }
46
        this.accessor = accessor;
3✔
47
        if (accessor == null) return;
2!
48
        accessor.getAccesses().add(this);
5✔
49
    }
1✔
50
    
51
    @FameProperty(name = "isRead", derived = true)
52
    public Boolean getIsRead() {
53
        return !this.isWrite;
9✔
54
    }
55
    
56
    @FameProperty(name = "isReadWriteUnknown", derived = true)
57
    public Boolean getIsReadWriteUnknown() {
58
        // TODO: this is a derived property, implement this method manually.
59
        throw new UnsupportedOperationException("Not yet implemented!");  
×
60
    }
61
    
62
    @FameProperty(name = "isWrite")
63
    public Boolean getIsWrite() {
64
        return isWrite;
3✔
65
    }
66

67
    public void setIsWrite(Boolean isWrite) {
68
        this.isWrite = isWrite;
3✔
69
    }
1✔
70
    
71
    @FameProperty(name = "next", opposite = "previous", derived = true)
72
    public TAssociation getNext() {
73
        return next;
3✔
74
    }
75

76
    public void setNext(TAssociation next) {
77
        if (this.next == null ? next != null : !this.next.equals(next)) {
6!
78
            TAssociation old_next = this.next;
3✔
79
            this.next = next;
3✔
80
            if (old_next != null) old_next.setPrevious(null);
2!
81
            if (next != null) next.setPrevious(this);
5!
82
        }
83
    }
1✔
84
    
85
    @FameProperty(name = "numberOfLinesOfCode")
86
    public Number getNumberOfLinesOfCode() {
87
        return numberOfLinesOfCode;
3✔
88
    }
89

90
    public void setNumberOfLinesOfCode(Number numberOfLinesOfCode) {
91
        this.numberOfLinesOfCode = numberOfLinesOfCode;
×
92
    }
×
93
    
94
    @FameProperty(name = "numberOfLinesOfCodeWithMoreThanOneCharacter", derived = true)
95
    public Number getNumberOfLinesOfCodeWithMoreThanOneCharacter() {
96
        // TODO: this is a derived property, implement this method manually.
97
        throw new UnsupportedOperationException("Not yet implemented!");  
×
98
    }
99
    
100
    @FameProperty(name = "previous", opposite = "next")
101
    public TAssociation getPrevious() {
102
        return previous;
3✔
103
    }
104

105
    public void setPrevious(TAssociation previous) {
106
        if (this.previous == null ? previous != null : !this.previous.equals(previous)) {
11!
107
            TAssociation old_previous = this.previous;
3✔
108
            this.previous = previous;
3✔
109
            if (old_previous != null) old_previous.setNext(null);
2!
110
            if (previous != null) previous.setNext(this);
5!
111
        }
112
    }
1✔
113
    
114
    @FameProperty(name = "sourceAnchor", opposite = "element", derived = true)
115
    public TSourceAnchor getSourceAnchor() {
116
        return sourceAnchor;
3✔
117
    }
118

119
    public void setSourceAnchor(TSourceAnchor sourceAnchor) {
120
        if (this.sourceAnchor == null ? sourceAnchor != null : !this.sourceAnchor.equals(sourceAnchor)) {
11!
121
            TSourceAnchor old_sourceAnchor = this.sourceAnchor;
3✔
122
            this.sourceAnchor = sourceAnchor;
3✔
123
            if (old_sourceAnchor != null) old_sourceAnchor.setElement(null);
2!
124
            if (sourceAnchor != null) sourceAnchor.setElement(this);
5!
125
        }
126
    }
1✔
127
    
128
    @FameProperty(name = "sourceText", derived = true)
129
    public String getSourceText() {
130
        // TODO: this is a derived property, implement this method manually.
131
        throw new UnsupportedOperationException("Not yet implemented!");  
×
132
    }
133

134
    @FameProperty(name = "candidates", opposite = "incomingAccesses", derived = true)
135
    public Collection<TAccessible> getCandidates() {
136
        if (candidates == null) {
3✔
137
            candidates = new MultivalueSet<TAccessible>() {
12✔
138
                @Override
139
                protected void clearOpposite(TAccessible e) {
NEW
140
                    e.getIncomingAccesses().remove(Access.this);
×
NEW
141
                }
×
142
                @Override
143
                protected void setOpposite(TAccessible e) {
144
                    e.getIncomingAccesses().add(Access.this);
6✔
145
                }
1✔
146
            };
147
        }
148
        return candidates;
3✔
149
    }
150

151
    public void setCandidates(Collection<? extends TAccessible> candidates) {
NEW
152
        this.getCandidates().clear();
×
NEW
153
        this.getCandidates().addAll(candidates);
×
NEW
154
    }
×
155

156
    public void addCandidates(TAccessible one) {
157
        this.getCandidates().add(one);
5✔
158
    }
1✔
159

160
    public void addCandidates(TAccessible one, TAccessible... many) {
NEW
161
        this.getCandidates().add(one);
×
NEW
162
        for (TAccessible each : many)
×
NEW
163
            this.getCandidates().add(each);
×
NEW
164
    }
×
165

166
    public void addCandidates(Iterable<? extends TAccessible> many) {
NEW
167
        for (TAccessible each : many)
×
NEW
168
            this.getCandidates().add(each);
×
NEW
169
    }
×
170

171
    public void addCandidates(TAccessible[] many) {
NEW
172
        for (TAccessible each : many)
×
NEW
173
            this.getCandidates().add(each);
×
NEW
174
    }
×
175

176
    public int numberOfCandidates() {
NEW
177
        return getCandidates().size();
×
178
    }
179

180
    public boolean hasCandidates() {
NEW
181
        return !getCandidates().isEmpty();
×
182
    }
183

184

185
}
186

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc