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

moosetechnology / VerveineJ / 23642838101

27 Mar 2026 10:52AM UTC coverage: 51.994% (-0.05%) from 52.039%
23642838101

Pull #205

github

web-flow
Merge 4adac8808 into d564a6404
Pull Request #205: Add support for primitive types in generics

1973 of 3970 branches covered (49.7%)

Branch coverage included in aggregate %.

12 of 35 new or added lines in 4 files covered. (34.29%)

234 existing lines in 2 files now uncovered.

4362 of 8214 relevant lines covered (53.1%)

2.15 hits per line

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

20.0
/app/src/main/java/org/moosetechnology/model/famix/famixjavaentities/PrimitiveType.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

10
import org.moosetechnology.model.famix.famixjavaentities.Class;
11
import org.moosetechnology.model.famix.famixtraits.TConcretization;
12
import org.moosetechnology.model.famix.famixtraits.TEntityTyping;
13
import org.moosetechnology.model.famix.famixtraits.TPrimitiveType;
14
import org.moosetechnology.model.famix.famixtraits.TReference;
15
import org.moosetechnology.model.famix.famixtraits.TSourceAnchor;
16
import org.moosetechnology.model.famix.famixtraits.TTypeArgument;
17
import org.moosetechnology.model.famix.famixtraits.TWithTypes;
18

19

20
@FamePackage("Famix-Java-Entities")
21
@FameDescription("PrimitiveType")
22
public class PrimitiveType extends Type implements TPrimitiveType, TTypeArgument {
3✔
23

24
    private Collection<TReference> incomingReferences; 
25

26
    private Collection<TEntityTyping> incomingTypings; 
27

28
    private Boolean isStub;
29
    
30
    private String name;
31
    
32
    private Number numberOfLinesOfCode;
33
    
34
    private TSourceAnchor sourceAnchor;
35
    
36
    private TWithTypes typeContainer;
37

38
        private Collection<TConcretization> outgoingConcretizations;
39
    
40

41

42
    @FameProperty(name = "fanIn", derived = true)
43
    public Number getFanIn() {
44
        // TODO: this is a derived property, implement this method manually.
45
        throw new UnsupportedOperationException("Not yet implemented!");  
×
46
    }
47
    
48
    @FameProperty(name = "fanOut", derived = true)
49
    public Number getFanOut() {
50
        // TODO: this is a derived property, implement this method manually.
UNCOV
51
        throw new UnsupportedOperationException("Not yet implemented!");  
×
52
    }
53
    
54
    @FameProperty(name = "incomingReferences", opposite = "referredEntity", derived = true)
55
    public Collection<TReference> getIncomingReferences() {
56
        if (incomingReferences == null) {
3✔
57
            incomingReferences = new MultivalueSet<TReference>() {
12✔
58
                @Override
59
                protected void clearOpposite(TReference e) {
UNCOV
60
                    e.setReferredEntity(null);
×
UNCOV
61
                }
×
62
                @Override
63
                protected void setOpposite(TReference e) {
64
                    e.setReferredEntity(PrimitiveType.this);
4✔
65
                }
1✔
66
            };
67
        }
68
        return incomingReferences;
3✔
69
    }
70
    
71
    public void setIncomingReferences(Collection<? extends TReference> incomingReferences) {
72
        this.getIncomingReferences().clear();
×
73
        this.getIncomingReferences().addAll(incomingReferences);
×
UNCOV
74
    }                    
×
75
    
76
        
77
    public void addIncomingReferences(TReference one) {
78
        this.getIncomingReferences().add(one);
×
79
    }   
×
80
    
81
    public void addIncomingReferences(TReference one, TReference... many) {
82
        this.getIncomingReferences().add(one);
×
83
        for (TReference each : many)
×
84
            this.getIncomingReferences().add(each);
×
UNCOV
85
    }   
×
86
    
87
    public void addIncomingReferences(Iterable<? extends TReference> many) {
88
        for (TReference each : many)
×
89
            this.getIncomingReferences().add(each);
×
UNCOV
90
    }   
×
91
                
92
    public void addIncomingReferences(TReference[] many) {
UNCOV
93
        for (TReference each : many)
×
UNCOV
94
            this.getIncomingReferences().add(each);
×
UNCOV
95
    }
×
96
    
97
    public int numberOfIncomingReferences() {
UNCOV
98
        return getIncomingReferences().size();
×
99
    }
100

101
    public boolean hasIncomingReferences() {
UNCOV
102
        return !getIncomingReferences().isEmpty();
×
103
    }
104

105
    @FameProperty(name = "incomingTypings", opposite = "declaredType", derived = true)
106
    public Collection<TEntityTyping> getIncomingTypings() {
107
        if (incomingTypings == null) {
3✔
108
            incomingTypings = new MultivalueSet<TEntityTyping>() {
12✔
109
                @Override
110
                protected void clearOpposite(TEntityTyping e) {
UNCOV
111
                    e.setDeclaredType(null);
×
UNCOV
112
                }
×
113
                @Override
114
                protected void setOpposite(TEntityTyping e) {
115
                    e.setDeclaredType(PrimitiveType.this);
4✔
116
                }
1✔
117
            };
118
        }
119
        return incomingTypings;
3✔
120
    }
121
    
122
    public void setIncomingTypings(Collection<? extends TEntityTyping> incomingTypings) {
123
        this.getIncomingTypings().clear();
×
124
        this.getIncomingTypings().addAll(incomingTypings);
×
UNCOV
125
    }                    
×
126
    
127
        
128
    public void addIncomingTypings(TEntityTyping one) {
129
        this.getIncomingTypings().add(one);
×
130
    }   
×
131
    
132
    public void addIncomingTypings(TEntityTyping one, TEntityTyping... many) {
133
        this.getIncomingTypings().add(one);
×
134
        for (TEntityTyping each : many)
×
135
            this.getIncomingTypings().add(each);
×
UNCOV
136
    }   
×
137
    
138
    public void addIncomingTypings(Iterable<? extends TEntityTyping> many) {
139
        for (TEntityTyping each : many)
×
140
            this.getIncomingTypings().add(each);
×
UNCOV
141
    }   
×
142
                
143
    public void addIncomingTypings(TEntityTyping[] many) {
UNCOV
144
        for (TEntityTyping each : many)
×
UNCOV
145
            this.getIncomingTypings().add(each);
×
UNCOV
146
    }
×
147
    
148
    public int numberOfIncomingTypings() {
UNCOV
149
        return getIncomingTypings().size();
×
150
    }
151

152
    public boolean hasIncomingTypings() {
153
        return !getIncomingTypings().isEmpty();
×
154
    }
155

156
    @FameProperty(name = "isDead", derived = true)
157
    public Boolean getIsDead() {
158
        // TODO: this is a derived property, implement this method manually.
159
        throw new UnsupportedOperationException("Not yet implemented!");  
×
160
    }
161
    
162
    @FameProperty(name = "isRoot", derived = true)
163
    public Boolean getIsRoot() {
164
        // TODO: this is a derived property, implement this method manually.
UNCOV
165
        throw new UnsupportedOperationException("Not yet implemented!");  
×
166
    }
167
    
168
    @FameProperty(name = "isStub")
169
    public Boolean getIsStub() {
170
        return isStub;
3✔
171
    }
172

173
    public void setIsStub(Boolean isStub) {
174
        this.isStub = isStub;
3✔
175
    }
1✔
176
    
177
    @FameProperty(name = "name")
178
    public String getName() {
179
        return name;
3✔
180
    }
181

182
    public void setName(String name) {
183
        this.name = name;
3✔
184
    }
1✔
185

186
    @FameProperty(name = "numberOfContainedEntities", derived = true)
187
    public Number getNumberOfContainedEntities() {
188
        // TODO: this is a derived property, implement this method manually.
189
        throw new UnsupportedOperationException("Not yet implemented!");
×
190
    }
191
    
192
    @FameProperty(name = "numberOfDeadChildren", derived = true)
193
    public Number getNumberOfDeadChildren() {
194
        // TODO: this is a derived property, implement this method manually.
195
        throw new UnsupportedOperationException("Not yet implemented!");  
×
196
    }
197
    
198
    @FameProperty(name = "numberOfExternalClients", derived = true)
199
    public Number getNumberOfExternalClients() {
200
        // TODO: this is a derived property, implement this method manually.
201
        throw new UnsupportedOperationException("Not yet implemented!");  
×
202
    }
203
    
204
    @FameProperty(name = "numberOfExternalProviders", derived = true)
205
    public Number getNumberOfExternalProviders() {
206
        // TODO: this is a derived property, implement this method manually.
207
        throw new UnsupportedOperationException("Not yet implemented!");  
×
208
    }
209
    
210
    @FameProperty(name = "numberOfInternalClients", derived = true)
211
    public Number getNumberOfInternalClients() {
212
        // TODO: this is a derived property, implement this method manually.
213
        throw new UnsupportedOperationException("Not yet implemented!");  
×
214
    }
215
    
216
    @FameProperty(name = "numberOfInternalProviders", derived = true)
217
    public Number getNumberOfInternalProviders() {
218
        // TODO: this is a derived property, implement this method manually.
UNCOV
219
        throw new UnsupportedOperationException("Not yet implemented!");  
×
220
    }
221
    
222
    @FameProperty(name = "numberOfLinesOfCode")
223
    public Number getNumberOfLinesOfCode() {
224
        return numberOfLinesOfCode;
3✔
225
    }
226

227
    public void setNumberOfLinesOfCode(Number numberOfLinesOfCode) {
228
        this.numberOfLinesOfCode = numberOfLinesOfCode;
×
UNCOV
229
    }
×
230
    
231
    @FameProperty(name = "numberOfLinesOfCodeWithMoreThanOneCharacter", derived = true)
232
    public Number getNumberOfLinesOfCodeWithMoreThanOneCharacter() {
233
        // TODO: this is a derived property, implement this method manually.
UNCOV
234
        throw new UnsupportedOperationException("Not yet implemented!");  
×
235
    }
236
    
237
    @FameProperty(name = "sourceAnchor", opposite = "element", derived = true)
238
    public TSourceAnchor getSourceAnchor() {
239
        return sourceAnchor;
3✔
240
    }
241

242
    public void setSourceAnchor(TSourceAnchor sourceAnchor) {
243
        if (this.sourceAnchor == null ? sourceAnchor != null : !this.sourceAnchor.equals(sourceAnchor)) {
×
UNCOV
244
            TSourceAnchor old_sourceAnchor = this.sourceAnchor;
×
UNCOV
245
            this.sourceAnchor = sourceAnchor;
×
UNCOV
246
            if (old_sourceAnchor != null) old_sourceAnchor.setElement(null);
×
UNCOV
247
            if (sourceAnchor != null) sourceAnchor.setElement(this);
×
248
        }
UNCOV
249
    }
×
250
    
251
    @FameProperty(name = "sourceText", derived = true)
252
    public String getSourceText() {
253
        // TODO: this is a derived property, implement this method manually.
UNCOV
254
        throw new UnsupportedOperationException("Not yet implemented!");  
×
255
    }
256
    
257
    @FameProperty(name = "typeContainer", opposite = "types", container = true)
258
    public TWithTypes getTypeContainer() {
259
        return typeContainer;
3✔
260
    }
261

262
    public void setTypeContainer(TWithTypes typeContainer) {
263
        if (this.typeContainer != null) {
×
264
            if (this.typeContainer.equals(typeContainer)) return;
×
UNCOV
265
            this.typeContainer.getTypes().remove(this);
×
266
        }
UNCOV
267
        this.typeContainer = typeContainer;
×
UNCOV
268
        if (typeContainer == null) return;
×
UNCOV
269
        typeContainer.getTypes().add(this);
×
UNCOV
270
    }
×
271

272
    @FameProperty(name = "outgoingConcretizations", opposite = "typeArgument", derived = true)
273
    public Collection<TConcretization> getOutgoingConcretizations() {
274
        if (outgoingConcretizations == null) {
3✔
275
            outgoingConcretizations = new MultivalueSet<TConcretization>() {
12✔
276
                @Override
277
                protected void clearOpposite(TConcretization e) {
NEW
UNCOV
278
                    e.setTypeArgument(null);
×
NEW
UNCOV
279
                }
×
280
                @Override
281
                protected void setOpposite(TConcretization e) {
282
                    e.setTypeArgument(PrimitiveType.this);
4✔
283
                }
1✔
284
            };
285
        }
286
        return outgoingConcretizations;
3✔
287
    }
288
    
289
    public void setOutgoingConcretizations(Collection<? extends TConcretization> outgoingConcretizations) {
NEW
UNCOV
290
        this.getOutgoingConcretizations().clear();
×
NEW
UNCOV
291
        this.getOutgoingConcretizations().addAll(outgoingConcretizations);
×
NEW
UNCOV
292
    }                    
×
293
    
294
        
295
    public void addOutgoingConcretizations(TConcretization one) {
NEW
UNCOV
296
        this.getOutgoingConcretizations().add(one);
×
NEW
UNCOV
297
    }   
×
298
    
299
    public void addOutgoingConcretizations(TConcretization one, TConcretization... many) {
NEW
UNCOV
300
        this.getOutgoingConcretizations().add(one);
×
NEW
UNCOV
301
        for (TConcretization each : many)
×
NEW
UNCOV
302
            this.getOutgoingConcretizations().add(each);
×
NEW
UNCOV
303
    }   
×
304
    
305
    public void addOutgoingConcretizations(Iterable<? extends TConcretization> many) {
NEW
UNCOV
306
        for (TConcretization each : many)
×
NEW
UNCOV
307
            this.getOutgoingConcretizations().add(each);
×
NEW
UNCOV
308
    }   
×
309
                
310
    public void addOutgoingConcretizations(TConcretization[] many) {
NEW
UNCOV
311
        for (TConcretization each : many)
×
NEW
UNCOV
312
            this.getOutgoingConcretizations().add(each);
×
NEW
UNCOV
313
    }
×
314
    
315
    public int numberOfOutgoingConcretizations() {
NEW
UNCOV
316
        return getOutgoingConcretizations().size();
×
317
    }
318

319
    public boolean hasOutgoingConcretizations() {
NEW
UNCOV
320
        return !getOutgoingConcretizations().isEmpty();
×
321
    }
322

323

324
}
325

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

© 2026 Coveralls, Inc