Package: GenerationModelItem
GenerationModelItem
name | instruction | branch | complexity | line | method | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
GenerationModelItem(String) |
|
|
|
|
|
||||||||||||||||||||
getName() |
|
|
|
|
|
||||||||||||||||||||
setName(String) |
|
|
|
|
|
Coverage
1: package de.fhdw.wtf.generator.java.generatorModel;
2:
3: import de.fhdw.wtf.generator.java.visitor.GenerationModelItemVisitor;
4:
5: /**
6: * A class for every item that can be generated.
7: */
8: public abstract class GenerationModelItem {
9:
10: /**
11: * The name of the item that can be generated.
12: */
13: private String name;
14:
15: /**
16: * Instantiates a new GenerationModelItem.
17: *
18: * @param name
19: * The name of the item that can be generated.
20: */
21: protected GenerationModelItem(final String name) {
22: this.name = name;
23: }
24:
25: /**
26: * Calls the handle method for this type in the given visitor.
27: *
28: * @param visitor
29: * The visitor that handles this type.
30: */
31: public abstract void accept(GenerationModelItemVisitor visitor);
32:
33: /**
34: * Returns the name of this item.
35: *
36: * @return String
37: */
38: public String getName() {
39: return this.name;
40: }
41:
42: /**
43: * Sets the name of this item.
44: *
45: * @param name
46: * String The name to set.
47: */
48: public void setName(final String name) {
49: this.name = name;
50: }
51:
52: }