Skip to content

Method: toString()

1: package de.fhdw.wtf.generator.java.generatorModel;
2:
3: /**
4: * A GenParameterModifier represents one of all possible modifiers for java-parameters. For example "final".
5: */
6: public enum GenParameterModifier {
7:         /**
8:          * The {@link GenParameterModifier} "final" declares that the value of a variable ones initialized can not be
9:          * changed anymore.
10:          */
11:         FINAL("final");
12:         
13:         /**
14:          * The String-representation of this {@link GenParameterModifier}.
15:          */
16:         private final String t;
17:         
18:         /**
19:          * Instantiates a new {@link GenParameterModifier}.
20:          *
21:          * @param t
22:          * The String-representation of the GenParameterModifier.
23:          */
24:         GenParameterModifier(final String t) {
25:                 this.t = t;
26:         }
27:         
28:         @Override
29:         public String toString() {
30:                 return this.t;
31:         }
32: }