01: package dk.brics.soot.intermediate.representation;
02:
03: public class Variable {
04:
05: public enum Type {
06: OTHER, FOO
07: };
08:
09: public Type type;
10:
11: public Variable(Type type) {
12: this .type = type;
13: }
14:
15: public String toString() {
16: switch (this .type) {
17: case FOO:
18: return "Foo f";
19: case OTHER:
20: return "Other f";
21: }
22: return "null";
23: }
24:
25: }
|