Package: GenMutableList
GenMutableList
| name | instruction | branch | complexity | line | method | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| GenMutableList(GenType) | 
  | 
  | 
  | 
  | 
  | 
||||||||||||||||||||
| accept(GenCollectionTypeVisitor) | 
  | 
  | 
  | 
  | 
  | 
||||||||||||||||||||
| create(GenType) | 
  | 
  | 
  | 
  | 
  | 
||||||||||||||||||||
| getFullyQualifiedTypeNameWithGenericArguments() | 
  | 
  | 
  | 
  | 
  | 
||||||||||||||||||||
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: }