Skip to content

Package: GenMutableList

GenMutableList

nameinstructionbranchcomplexitylinemethod
GenMutableList(GenType)
M: 0 C: 5
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 2
100%
M: 0 C: 1
100%
accept(GenCollectionTypeVisitor)
M: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
create(GenType)
M: 0 C: 5
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getFullyQualifiedTypeNameWithGenericArguments()
M: 0 C: 16
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 2
100%
M: 0 C: 1
100%

Coverage

1: package de.fhdw.wtf.generator.java.generatorModel;
2:
3: import de.fhdw.wtf.generator.java.visitor.GenCollectionTypeVisitor;
4:
5: /**
6: * Represents a list type in the generator model.
7: */
8: public class GenMutableList extends GenCollectionType {
9:         
10:         /**
11:          * Name of the Context class representing lists.
12:          */
13:         private static final String MUTABLE_LIST_TYPENAME = "MutableList";
14:         
15:         /**
16:          * Creates a {@link GenMutableList} object.
17:          *
18:          * @param value
19:          * The list's value type.
20:          */
21:         protected GenMutableList(final GenType value) {
22:                 super(MUTABLE_LIST_TYPENAME, value);
23:         }
24:         
25:         /**
26:          * Creates a {@link GenMutableList} object.
27:          *
28:          * @param value
29:          * The list's value type.
30:          * @return A {@link GenMutableList} object.
31:          */
32:         public static GenMutableList create(final GenType value) {
33:                 return new GenMutableList(value);
34:         }
35:         
36:         @Override
37:         public String getFullyQualifiedTypeNameWithGenericArguments() {
38:                 return this.getFullyQualifiedTypeName() + GEN_OPEN
39:                                 + this.getType().getFullyQualifiedTypeNameWithGenericArguments() + GEN_CLOSE;
40:         }
41:         
42:         @Override
43:         public void accept(final GenCollectionTypeVisitor visitor) {
44:                 visitor.handle(this);
45:         }
46:         
47: }