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

moosetechnology / VerveineJ / 14660115829

25 Apr 2025 08:16AM UTC coverage: 50.58% (+0.6%) from 49.972%
14660115829

Pull #127

github

web-flow
Merge 56b1c8e73 into 5207a6c7c
Pull Request #127: New generics implementation

1876 of 3946 branches covered (47.54%)

Branch coverage included in aggregate %.

486 of 1087 new or added lines in 52 files covered. (44.71%)

56 existing lines in 10 files now uncovered.

4270 of 8205 relevant lines covered (52.04%)

2.08 hits per line

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

38.38
/app/src/main/java/org/moosetechnology/model/famix/famixjavaentities/Concretization.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.TConcreteType;
9
import org.moosetechnology.model.famix.famixtraits.TConcretization;
10
import org.moosetechnology.model.famix.famixtraits.TParametricAssociation;
11
import org.moosetechnology.model.famix.famixtraits.TSourceAnchor;
12
import org.moosetechnology.model.famix.famixtraits.TTypeParameter;
13

14

15
@FamePackage("Famix-Java-Entities")
16
@FameDescription("Concretization")
17
public class Concretization extends Entity implements TConcretization {
3✔
18

19
    private TConcreteType concreteParameter;
20
    
21
    private TTypeParameter genericParameter;
22
    
23
    private TAssociation next;
24
    
25
    private Number numberOfLinesOfCode;
26
    
27
    private TAssociation previous;
28
    
29
    private TSourceAnchor sourceAnchor;
30
    
31
    private TParametricAssociation triggeringAssociation;
32
    
33

34

35
    @FameProperty(name = "concreteParameter", opposite = "outgoingConcretizations")
36
    public TConcreteType getConcreteParameter() {
37
        return concreteParameter;
3✔
38
    }
39

40
    public void setConcreteParameter(TConcreteType concreteParameter) {
41
        if (this.concreteParameter != null) {
3✔
42
            if (this.concreteParameter.equals(concreteParameter)) return;
6!
NEW
43
            this.concreteParameter.getOutgoingConcretizations().remove(this);
×
44
        }
45
        this.concreteParameter = concreteParameter;
3✔
46
        if (concreteParameter == null) return;
2!
47
        concreteParameter.getOutgoingConcretizations().add(this);
5✔
48
    }
1✔
49
    
50
    @FameProperty(name = "genericParameter", opposite = "concretizations")
51
    public TTypeParameter getGenericParameter() {
52
        return genericParameter;
3✔
53
    }
54

55
    public void setGenericParameter(TTypeParameter genericParameter) {
56
        if (this.genericParameter != null) {
3✔
57
            if (this.genericParameter.equals(genericParameter)) return;
6!
NEW
58
            this.genericParameter.getConcretizations().remove(this);
×
59
        }
60
        this.genericParameter = genericParameter;
3✔
61
        if (genericParameter == null) return;
2!
62
        genericParameter.getConcretizations().add(this);
5✔
63
    }
1✔
64
    
65
    @FameProperty(name = "next", opposite = "previous", derived = true)
66
    public TAssociation getNext() {
67
        return next;
3✔
68
    }
69

70
    public void setNext(TAssociation next) {
71
        if (this.next == null ? next != null : !this.next.equals(next)) {
×
72
            TAssociation old_next = this.next;
×
73
            this.next = next;
×
74
            if (old_next != null) old_next.setPrevious(null);
×
75
            if (next != null) next.setPrevious(this);
×
76
        }
77
    }
×
78
    
79
    @FameProperty(name = "numberOfLinesOfCode")
80
    public Number getNumberOfLinesOfCode() {
81
        return numberOfLinesOfCode;
3✔
82
    }
83

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

99
    public void setPrevious(TAssociation previous) {
100
        if (this.previous == null ? previous != null : !this.previous.equals(previous)) {
×
101
            TAssociation old_previous = this.previous;
×
102
            this.previous = previous;
×
103
            if (old_previous != null) old_previous.setNext(null);
×
104
            if (previous != null) previous.setNext(this);
×
105
        }
106
    }
×
107
    
108
    @FameProperty(name = "sourceAnchor", opposite = "element", derived = true)
109
    public TSourceAnchor getSourceAnchor() {
110
        return sourceAnchor;
3✔
111
    }
112

113
    public void setSourceAnchor(TSourceAnchor sourceAnchor) {
114
        if (this.sourceAnchor == null ? sourceAnchor != null : !this.sourceAnchor.equals(sourceAnchor)) {
×
115
            TSourceAnchor old_sourceAnchor = this.sourceAnchor;
×
116
            this.sourceAnchor = sourceAnchor;
×
117
            if (old_sourceAnchor != null) old_sourceAnchor.setElement(null);
×
118
            if (sourceAnchor != null) sourceAnchor.setElement(this);
×
119
        }
120
    }
×
121
    
122
    @FameProperty(name = "sourceText", derived = true)
123
    public String getSourceText() {
124
        // TODO: this is a derived property, implement this method manually.
125
        throw new UnsupportedOperationException("Not yet implemented!");  
×
126
    }
127
    
128
    @FameProperty(name = "triggeringAssociation", opposite = "concretization")
129
    public TParametricAssociation getTriggeringAssociation() {
130
        return triggeringAssociation;
3✔
131
    }
132

133
    public void setTriggeringAssociation(TParametricAssociation triggeringAssociation) {
134
        if (this.triggeringAssociation != null) {
3✔
135
            if (this.triggeringAssociation.equals(triggeringAssociation)) return;
6!
NEW
136
            this.triggeringAssociation.getConcretization().remove(this);
×
137
        }
138
        this.triggeringAssociation = triggeringAssociation;
3✔
139
        if (triggeringAssociation == null) return;
2!
140
        triggeringAssociation.getConcretization().add(this);
5✔
141
    }
1✔
142
    
143

144

145
}
146

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