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

moosetechnology / VerveineJ / 15191557690

22 May 2025 04:10PM UTC coverage: 50.616% (+0.6%) from 49.972%
15191557690

push

github

web-flow
Merge pull request #127 from moosetechnology/new-generics-implementation

New generics implementation

1884 of 3956 branches covered (47.62%)

Branch coverage included in aggregate %.

513 of 1119 new or added lines in 53 files covered. (45.84%)

53 existing lines in 10 files now uncovered.

4277 of 8216 relevant lines covered (52.06%)

2.08 hits per line

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

19.83
/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

15

16
@FamePackage("Famix-Java-Entities")
17
@FameDescription("PrimitiveType")
18
public class PrimitiveType extends Type implements TPrimitiveType {
3✔
19

20
    private Collection<TReference> incomingReferences; 
21

22
    private Collection<TEntityTyping> incomingTypings; 
23

24
    private Boolean isStub;
25
    
26
    private String name;
27
    
28
    private Number numberOfLinesOfCode;
29
    
30
    private TSourceAnchor sourceAnchor;
31
    
32
    private TWithTypes typeContainer;
33
    
34

35

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

95
    public boolean hasIncomingReferences() {
96
        return !getIncomingReferences().isEmpty();
×
97
    }
98

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

146
    public boolean hasIncomingTypings() {
NEW
147
        return !getIncomingTypings().isEmpty();
×
148
    }
149

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

167
    public void setIsStub(Boolean isStub) {
168
        this.isStub = isStub;
3✔
169
    }
1✔
170
    
171
    @FameProperty(name = "name")
172
    public String getName() {
173
        return name;
3✔
174
    }
175

176
    public void setName(String name) {
177
        this.name = name;
3✔
178
    }
1✔
179
    
180
    @FameProperty(name = "numberOfChildren", derived = true)
181
    public Number getNumberOfChildren() {
182
        // TODO: this is a derived property, implement this method manually.
183
        throw new UnsupportedOperationException("Not yet implemented!");  
×
184
    }
185
    
186
    @FameProperty(name = "numberOfDeadChildren", derived = true)
187
    public Number getNumberOfDeadChildren() {
188
        // TODO: this is a derived property, implement this method manually.
189
        throw new UnsupportedOperationException("Not yet implemented!");  
×
190
    }
191
    
192
    @FameProperty(name = "numberOfExternalClients", derived = true)
193
    public Number getNumberOfExternalClients() {
194
        // TODO: this is a derived property, implement this method manually.
195
        throw new UnsupportedOperationException("Not yet implemented!");  
×
196
    }
197
    
198
    @FameProperty(name = "numberOfExternalProviders", derived = true)
199
    public Number getNumberOfExternalProviders() {
200
        // TODO: this is a derived property, implement this method manually.
201
        throw new UnsupportedOperationException("Not yet implemented!");  
×
202
    }
203
    
204
    @FameProperty(name = "numberOfInternalClients", derived = true)
205
    public Number getNumberOfInternalClients() {
206
        // TODO: this is a derived property, implement this method manually.
207
        throw new UnsupportedOperationException("Not yet implemented!");  
×
208
    }
209
    
210
    @FameProperty(name = "numberOfInternalProviders", derived = true)
211
    public Number getNumberOfInternalProviders() {
212
        // TODO: this is a derived property, implement this method manually.
213
        throw new UnsupportedOperationException("Not yet implemented!");  
×
214
    }
215
    
216
    @FameProperty(name = "numberOfLinesOfCode")
217
    public Number getNumberOfLinesOfCode() {
218
        return numberOfLinesOfCode;
3✔
219
    }
220

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

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

256
    public void setTypeContainer(TWithTypes typeContainer) {
257
        if (this.typeContainer != null) {
×
258
            if (this.typeContainer.equals(typeContainer)) return;
×
259
            this.typeContainer.getTypes().remove(this);
×
260
        }
261
        this.typeContainer = typeContainer;
×
262
        if (typeContainer == null) return;
×
263
        typeContainer.getTypes().add(this);
×
264
    }
×
265
    
266

267

268
}
269

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