• 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

36.36
/app/src/main/java/org/moosetechnology/model/famix/famixjavaentities/EntityTyping.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 org.moosetechnology.model.famix.famixtraits.TAssociation;
8
import org.moosetechnology.model.famix.famixtraits.TEntityTyping;
9
import org.moosetechnology.model.famix.famixtraits.TSourceAnchor;
10
import org.moosetechnology.model.famix.famixtraits.TType;
11
import org.moosetechnology.model.famix.famixtraits.TTypedEntity;
12

13

14
@FamePackage("Famix-Java-Entities")
15
@FameDescription("EntityTyping")
16
public class EntityTyping extends Entity implements TEntityTyping {
3✔
17

18
    private TType declaredType;
19
    
20
    private TAssociation next;
21
    
22
    private Number numberOfLinesOfCode;
23
    
24
    private TAssociation previous;
25
    
26
    private TSourceAnchor sourceAnchor;
27
    
28
    private TTypedEntity typedEntity;
29
    
30

31

32
    @FameProperty(name = "declaredType", opposite = "incomingTypings")
33
    public TType getDeclaredType() {
34
        return declaredType;
3✔
35
    }
36

37
    public void setDeclaredType(TType declaredType) {
38
        if (this.declaredType != null) {
3✔
39
            if (this.declaredType.equals(declaredType)) return;
6!
NEW
40
            this.declaredType.getIncomingTypings().remove(this);
×
41
        }
42
        this.declaredType = declaredType;
3✔
43
        if (declaredType == null) return;
2!
44
        declaredType.getIncomingTypings().add(this);
5✔
45
    }
1✔
46
    
47
    @FameProperty(name = "next", opposite = "previous", derived = true)
48
    public TAssociation getNext() {
49
        return next;
3✔
50
    }
51

52
    public void setNext(TAssociation next) {
NEW
53
        if (this.next == null ? next != null : !this.next.equals(next)) {
×
NEW
54
            TAssociation old_next = this.next;
×
NEW
55
            this.next = next;
×
NEW
56
            if (old_next != null) old_next.setPrevious(null);
×
NEW
57
            if (next != null) next.setPrevious(this);
×
58
        }
NEW
59
    }
×
60
    
61
    @FameProperty(name = "numberOfLinesOfCode")
62
    public Number getNumberOfLinesOfCode() {
63
        return numberOfLinesOfCode;
3✔
64
    }
65

66
    public void setNumberOfLinesOfCode(Number numberOfLinesOfCode) {
NEW
67
        this.numberOfLinesOfCode = numberOfLinesOfCode;
×
NEW
68
    }
×
69
    
70
    @FameProperty(name = "numberOfLinesOfCodeWithMoreThanOneCharacter", derived = true)
71
    public Number getNumberOfLinesOfCodeWithMoreThanOneCharacter() {
72
        // TODO: this is a derived property, implement this method manually.
NEW
73
        throw new UnsupportedOperationException("Not yet implemented!");  
×
74
    }
75
    
76
    @FameProperty(name = "previous", opposite = "next")
77
    public TAssociation getPrevious() {
78
        return previous;
3✔
79
    }
80

81
    public void setPrevious(TAssociation previous) {
NEW
82
        if (this.previous == null ? previous != null : !this.previous.equals(previous)) {
×
NEW
83
            TAssociation old_previous = this.previous;
×
NEW
84
            this.previous = previous;
×
NEW
85
            if (old_previous != null) old_previous.setNext(null);
×
NEW
86
            if (previous != null) previous.setNext(this);
×
87
        }
NEW
88
    }
×
89
    
90
    @FameProperty(name = "sourceAnchor", opposite = "element", derived = true)
91
    public TSourceAnchor getSourceAnchor() {
92
        return sourceAnchor;
3✔
93
    }
94

95
    public void setSourceAnchor(TSourceAnchor sourceAnchor) {
NEW
96
        if (this.sourceAnchor == null ? sourceAnchor != null : !this.sourceAnchor.equals(sourceAnchor)) {
×
NEW
97
            TSourceAnchor old_sourceAnchor = this.sourceAnchor;
×
NEW
98
            this.sourceAnchor = sourceAnchor;
×
NEW
99
            if (old_sourceAnchor != null) old_sourceAnchor.setElement(null);
×
NEW
100
            if (sourceAnchor != null) sourceAnchor.setElement(this);
×
101
        }
NEW
102
    }
×
103
    
104
    @FameProperty(name = "sourceText", derived = true)
105
    public String getSourceText() {
106
        // TODO: this is a derived property, implement this method manually.
NEW
107
        throw new UnsupportedOperationException("Not yet implemented!");  
×
108
    }
109
    
110
    @FameProperty(name = "typedEntity", opposite = "typing", derived = true)
111
    public TTypedEntity getTypedEntity() {
112
        return typedEntity;
3✔
113
    }
114

115
    public void setTypedEntity(TTypedEntity typedEntity) {
116
        if (this.typedEntity == null ? typedEntity != null : !this.typedEntity.equals(typedEntity)) {
11!
117
            TTypedEntity old_typedEntity = this.typedEntity;
3✔
118
            this.typedEntity = typedEntity;
3✔
119
            if (old_typedEntity != null) old_typedEntity.setTyping(null);
5✔
120
            if (typedEntity != null) typedEntity.setTyping(this);
5✔
121
        }
122
    }
1✔
123
    
124

125

126
}
127

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