• 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

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.*;
8

9

10
@FamePackage("Famix-Java-Entities")
11
@FameDescription("Concretization")
12
public class Concretization extends Entity implements TConcretization {
3✔
13

14
    private TTypeArgument typeArgument;
15
    
16
    private TTypeParameter typeParameter;
17
    
18
    private TAssociation next;
19
    
20
    private Number numberOfLinesOfCode;
21
    
22
    private TAssociation previous;
23
    
24
    private TSourceAnchor sourceAnchor;
25
    
26
    private TParametricAssociation triggeringAssociation;
27
    
28

29

30
    @FameProperty(name = "typeArgument", opposite = "outgoingConcretizations")
31
    public TTypeArgument getTypeArgument() {
32
        return typeArgument;
3✔
33
    }
34

35
    public void setTypeArgument(TTypeArgument typeArgument) {
36
        if (this.typeArgument != null) {
3✔
37
            if (this.typeArgument.equals(typeArgument)) return;
6!
NEW
38
            this.typeArgument.getOutgoingConcretizations().remove(this);
×
39
        }
40
        this.typeArgument = typeArgument;
3✔
41
        if (typeArgument == null) return;
2!
42
        typeArgument.getOutgoingConcretizations().add(this);
5✔
43
    }
1✔
44
    
45
    @FameProperty(name = "typeParameter", opposite = "concretizations")
46
    public TTypeParameter getTypeParameter() {
47
        return typeParameter;
3✔
48
    }
49

50
    public void setTypeParameter(TTypeParameter typeParameter) {
51
        if (this.typeParameter != null) {
3✔
52
            if (this.typeParameter.equals(typeParameter)) return;
6!
NEW
53
            this.typeParameter.getConcretizations().remove(this);
×
54
        }
55
        this.typeParameter = typeParameter;
3✔
56
        if (typeParameter == null) return;
2!
57
        typeParameter.getConcretizations().add(this);
5✔
58
    }
1✔
59
    
60
    @FameProperty(name = "next", opposite = "previous", derived = true)
61
    public TAssociation getNext() {
62
        return next;
3✔
63
    }
64

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

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

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

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

128
    public void setTriggeringAssociation(TParametricAssociation triggeringAssociation) {
129
        if (this.triggeringAssociation != null) {
3✔
130
            if (this.triggeringAssociation.equals(triggeringAssociation)) return;
6!
NEW
131
            this.triggeringAssociation.getConcretizations().remove(this);
×
132
        }
133
        this.triggeringAssociation = triggeringAssociation;
3✔
134
        if (triggeringAssociation == null) return;
2!
135
        triggeringAssociation.getConcretizations().add(this);
5✔
136
    }
1✔
137
    
138

139

140
}
141

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