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

moosetechnology / VerveineJ / 23750676933

30 Mar 2026 02:41PM UTC coverage: 51.947% (-0.09%) from 52.039%
23750676933

push

github

web-flow
Merge pull request #207 from moosetechnology/primitive-type-as-type-argument

Following Famix change: allow PrimitiveType to be used as TypeArgument

1969 of 3966 branches covered (49.65%)

Branch coverage included in aggregate %.

5 of 46 new or added lines in 1 file covered. (10.87%)

1 existing line in 1 file now uncovered.

4355 of 8208 relevant lines covered (53.06%)

2.15 hits per line

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

18.99
/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
import org.moosetechnology.model.famix.famixtraits.TEntityTyping;
10
import org.moosetechnology.model.famix.famixtraits.TPrimitiveType;
11
import org.moosetechnology.model.famix.famixtraits.TReference;
12
import org.moosetechnology.model.famix.famixtraits.TSourceAnchor;
13
import org.moosetechnology.model.famix.famixtraits.TWithTypes;
14
import org.moosetechnology.model.famix.famixreplication.Replica;
15
import org.moosetechnology.model.famix.famixtraits.TConcretization;
16
import org.moosetechnology.model.famix.famixtraits.TTypeArgument;
17

18

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

23
    private Collection<TReference> incomingReferences;
24

25
    private Collection<TEntityTyping> incomingTypings;
26

27
    private Boolean isStub;
28

29
    private String name;
30

31
    private Number numberOfLinesOfCode;
32

33
    private Collection<TConcretization> outgoingConcretizations;
34

35
    private TSourceAnchor sourceAnchor;
36

37
    private TWithTypes typeContainer;
38

39

40

41
    @FameProperty(name = "containsReplicas", derived = true)
42
    public Boolean getContainsReplicas() {
43
        // TODO: this is a derived property, implement this method manually.
NEW
44
        throw new UnsupportedOperationException("Not yet implemented!");
×
45
    }
46

47
    @FameProperty(name = "duplicationRate", derived = true)
48
    public Number getDuplicationRate() {
49
        // TODO: this is a derived property, implement this method manually.
NEW
50
        throw new UnsupportedOperationException("Not yet implemented!");
×
51
    }
52

53
    @FameProperty(name = "fanIn", derived = true)
54
    public Number getFanIn() {
55
        // TODO: this is a derived property, implement this method manually.
NEW
56
        throw new UnsupportedOperationException("Not yet implemented!");
×
57
    }
58

59
    @FameProperty(name = "fanOut", derived = true)
60
    public Number getFanOut() {
61
        // TODO: this is a derived property, implement this method manually.
NEW
62
        throw new UnsupportedOperationException("Not yet implemented!");
×
63
    }
64

65
    @FameProperty(name = "incomingReferences", opposite = "referredEntity", derived = true)
66
    public Collection<TReference> getIncomingReferences() {
67
        if (incomingReferences == null) {
3✔
68
            incomingReferences = new MultivalueSet<TReference>() {
12✔
69
                @Override
70
                protected void clearOpposite(TReference e) {
71
                    e.setReferredEntity(null);
×
72
                }
×
73
                @Override
74
                protected void setOpposite(TReference e) {
75
                    e.setReferredEntity(PrimitiveType.this);
4✔
76
                }
1✔
77
            };
78
        }
79
        return incomingReferences;
3✔
80
    }
81

82
    public void setIncomingReferences(Collection<? extends TReference> incomingReferences) {
83
        this.getIncomingReferences().clear();
×
84
        this.getIncomingReferences().addAll(incomingReferences);
×
NEW
85
    }
×
86

87

88
    public void addIncomingReferences(TReference one) {
89
        this.getIncomingReferences().add(one);
×
NEW
90
    }
×
91

92
    public void addIncomingReferences(TReference one, TReference... many) {
93
        this.getIncomingReferences().add(one);
×
94
        for (TReference each : many)
×
95
            this.getIncomingReferences().add(each);
×
NEW
96
    }
×
97

98
    public void addIncomingReferences(Iterable<? extends TReference> many) {
99
        for (TReference each : many)
×
100
            this.getIncomingReferences().add(each);
×
NEW
101
    }
×
102

103
    public void addIncomingReferences(TReference[] many) {
104
        for (TReference each : many)
×
105
            this.getIncomingReferences().add(each);
×
106
    }
×
107

108
    public int numberOfIncomingReferences() {
109
        return getIncomingReferences().size();
×
110
    }
111

112
    public boolean hasIncomingReferences() {
113
        return !getIncomingReferences().isEmpty();
×
114
    }
115

116
    @FameProperty(name = "incomingTypings", opposite = "declaredType", derived = true)
117
    public Collection<TEntityTyping> getIncomingTypings() {
118
        if (incomingTypings == null) {
3✔
119
            incomingTypings = new MultivalueSet<TEntityTyping>() {
12✔
120
                @Override
121
                protected void clearOpposite(TEntityTyping e) {
122
                    e.setDeclaredType(null);
×
123
                }
×
124
                @Override
125
                protected void setOpposite(TEntityTyping e) {
126
                    e.setDeclaredType(PrimitiveType.this);
4✔
127
                }
1✔
128
            };
129
        }
130
        return incomingTypings;
3✔
131
    }
132

133
    public void setIncomingTypings(Collection<? extends TEntityTyping> incomingTypings) {
134
        this.getIncomingTypings().clear();
×
135
        this.getIncomingTypings().addAll(incomingTypings);
×
NEW
136
    }
×
137

138

139
    public void addIncomingTypings(TEntityTyping one) {
140
        this.getIncomingTypings().add(one);
×
NEW
141
    }
×
142

143
    public void addIncomingTypings(TEntityTyping one, TEntityTyping... many) {
144
        this.getIncomingTypings().add(one);
×
145
        for (TEntityTyping each : many)
×
146
            this.getIncomingTypings().add(each);
×
NEW
147
    }
×
148

149
    public void addIncomingTypings(Iterable<? extends TEntityTyping> many) {
150
        for (TEntityTyping each : many)
×
151
            this.getIncomingTypings().add(each);
×
NEW
152
    }
×
153

154
    public void addIncomingTypings(TEntityTyping[] many) {
155
        for (TEntityTyping each : many)
×
156
            this.getIncomingTypings().add(each);
×
157
    }
×
158

159
    public int numberOfIncomingTypings() {
160
        return getIncomingTypings().size();
×
161
    }
162

163
    public boolean hasIncomingTypings() {
164
        return !getIncomingTypings().isEmpty();
×
165
    }
166

167
    @FameProperty(name = "isDead", derived = true)
168
    public Boolean getIsDead() {
169
        // TODO: this is a derived property, implement this method manually.
NEW
170
        throw new UnsupportedOperationException("Not yet implemented!");
×
171
    }
172

173
    @FameProperty(name = "isRoot", derived = true)
174
    public Boolean getIsRoot() {
175
        // TODO: this is a derived property, implement this method manually.
NEW
176
        throw new UnsupportedOperationException("Not yet implemented!");
×
177
    }
178

179
    @FameProperty(name = "isStub")
180
    public Boolean getIsStub() {
181
        return isStub;
3✔
182
    }
183

184
    public void setIsStub(Boolean isStub) {
185
        this.isStub = isStub;
3✔
186
    }
1✔
187

188
    @FameProperty(name = "name")
189
    public String getName() {
190
        return name;
3✔
191
    }
192

193
    public void setName(String name) {
194
        this.name = name;
3✔
195
    }
1✔
196

197
    @FameProperty(name = "numberOfContainedEntities", derived = true)
198
    public Number getNumberOfContainedEntities() {
199
        // TODO: this is a derived property, implement this method manually.
200
        throw new UnsupportedOperationException("Not yet implemented!");
×
201
    }
202

203
    @FameProperty(name = "numberOfDeadChildren", derived = true)
204
    public Number getNumberOfDeadChildren() {
205
        // TODO: this is a derived property, implement this method manually.
NEW
206
        throw new UnsupportedOperationException("Not yet implemented!");
×
207
    }
208

209
    @FameProperty(name = "numberOfExternalClients", derived = true)
210
    public Number getNumberOfExternalClients() {
211
        // TODO: this is a derived property, implement this method manually.
NEW
212
        throw new UnsupportedOperationException("Not yet implemented!");
×
213
    }
214

215
    @FameProperty(name = "numberOfExternalProviders", derived = true)
216
    public Number getNumberOfExternalProviders() {
217
        // TODO: this is a derived property, implement this method manually.
NEW
218
        throw new UnsupportedOperationException("Not yet implemented!");
×
219
    }
220

221
    @FameProperty(name = "numberOfInternalClients", derived = true)
222
    public Number getNumberOfInternalClients() {
223
        // TODO: this is a derived property, implement this method manually.
NEW
224
        throw new UnsupportedOperationException("Not yet implemented!");
×
225
    }
226

227
    @FameProperty(name = "numberOfInternalProviders", derived = true)
228
    public Number getNumberOfInternalProviders() {
229
        // TODO: this is a derived property, implement this method manually.
NEW
230
        throw new UnsupportedOperationException("Not yet implemented!");
×
231
    }
232

233
    @FameProperty(name = "numberOfLinesOfCode")
234
    public Number getNumberOfLinesOfCode() {
235
        return numberOfLinesOfCode;
3✔
236
    }
237

238
    public void setNumberOfLinesOfCode(Number numberOfLinesOfCode) {
239
        this.numberOfLinesOfCode = numberOfLinesOfCode;
×
240
    }
×
241

242
    @FameProperty(name = "numberOfLinesOfCodeWithMoreThanOneCharacter", derived = true)
243
    public Number getNumberOfLinesOfCodeWithMoreThanOneCharacter() {
244
        // TODO: this is a derived property, implement this method manually.
NEW
245
        throw new UnsupportedOperationException("Not yet implemented!");
×
246
    }
247

248
    @FameProperty(name = "outgoingConcretizations", opposite = "typeArgument", derived = true)
249
    public Collection<TConcretization> getOutgoingConcretizations() {
250
        if (outgoingConcretizations == null) {
3✔
251
            outgoingConcretizations = new MultivalueSet<TConcretization>() {
12✔
252
                @Override
253
                protected void clearOpposite(TConcretization e) {
NEW
254
                    e.setTypeArgument(null);
×
NEW
255
                }
×
256
                @Override
257
                protected void setOpposite(TConcretization e) {
NEW
258
                    e.setTypeArgument(PrimitiveType.this);
×
NEW
259
                }
×
260
            };
261
        }
262
        return outgoingConcretizations;
3✔
263
    }
264

265
    public void setOutgoingConcretizations(Collection<? extends TConcretization> outgoingConcretizations) {
NEW
266
        this.getOutgoingConcretizations().clear();
×
NEW
267
        this.getOutgoingConcretizations().addAll(outgoingConcretizations);
×
UNCOV
268
    }
×
269

270

271
    public void addOutgoingConcretizations(TConcretization one) {
NEW
272
        this.getOutgoingConcretizations().add(one);
×
NEW
273
    }
×
274

275
    public void addOutgoingConcretizations(TConcretization one, TConcretization... many) {
NEW
276
        this.getOutgoingConcretizations().add(one);
×
NEW
277
        for (TConcretization each : many)
×
NEW
278
            this.getOutgoingConcretizations().add(each);
×
NEW
279
    }
×
280

281
    public void addOutgoingConcretizations(Iterable<? extends TConcretization> many) {
NEW
282
        for (TConcretization each : many)
×
NEW
283
            this.getOutgoingConcretizations().add(each);
×
NEW
284
    }
×
285

286
    public void addOutgoingConcretizations(TConcretization[] many) {
NEW
287
        for (TConcretization each : many)
×
NEW
288
            this.getOutgoingConcretizations().add(each);
×
NEW
289
    }
×
290

291
    public int numberOfOutgoingConcretizations() {
NEW
292
        return getOutgoingConcretizations().size();
×
293
    }
294

295
    public boolean hasOutgoingConcretizations() {
NEW
296
        return !getOutgoingConcretizations().isEmpty();
×
297
    }
298

299
    @FameProperty(name = "replicas", derived = true)
300
    public Replica getReplicas() {
301
        // TODO: this is a derived property, implement this method manually.
302
        throw new UnsupportedOperationException("Not yet implemented!");
5✔
303
    }
304

305
    @FameProperty(name = "sourceAnchor", opposite = "element", derived = true)
306
    public TSourceAnchor getSourceAnchor() {
307
        return sourceAnchor;
3✔
308
    }
309

310
    public void setSourceAnchor(TSourceAnchor sourceAnchor) {
311
        if (this.sourceAnchor == null ? sourceAnchor != null : !this.sourceAnchor.equals(sourceAnchor)) {
×
312
            TSourceAnchor old_sourceAnchor = this.sourceAnchor;
×
313
            this.sourceAnchor = sourceAnchor;
×
314
            if (old_sourceAnchor != null) old_sourceAnchor.setElement(null);
×
315
            if (sourceAnchor != null) sourceAnchor.setElement(this);
×
316
        }
317
    }
×
318

319
    @FameProperty(name = "sourceText", derived = true)
320
    public String getSourceText() {
321
        // TODO: this is a derived property, implement this method manually.
NEW
322
        throw new UnsupportedOperationException("Not yet implemented!");
×
323
    }
324

325
    @FameProperty(name = "typeContainer", opposite = "types", container = true)
326
    public TWithTypes getTypeContainer() {
327
        return typeContainer;
3✔
328
    }
329

330
    public void setTypeContainer(TWithTypes typeContainer) {
331
        if (this.typeContainer != null) {
×
332
            if (this.typeContainer.equals(typeContainer)) return;
×
333
            this.typeContainer.getTypes().remove(this);
×
334
        }
335
        this.typeContainer = typeContainer;
×
336
        if (typeContainer == null) return;
×
337
        typeContainer.getTypes().add(this);
×
338
    }
×
339

340

341

342
}
343

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