01: // This file is part of KeY - Integrated Deductive Software Design
02: // Copyright (C) 2001-2007 Universitaet Karlsruhe, Germany
03: // Universitaet Koblenz-Landau, Germany
04: // Chalmers University of Technology, Sweden
05: //
06: // The KeY system is protected by the GNU General Public License.
07: // See LICENSE.TXT for details.
08: //
09: //
10:
11: package de.uka.ilkd.key.parser;
12:
13: public class ParserMode {
14: public static final ParserMode DECLARATION = new ParserMode();
15: public static final ParserMode TERM = new ParserMode();
16: public static final ParserMode GLOBALDECL = new ParserMode();
17: public static final ParserMode TACLET = new ParserMode();
18: public static final ParserMode PROBLEM = new ParserMode();
19:
20: public String getName() {
21: if (this == DECLARATION)
22: return "DECLARATION";
23: if (this == TERM)
24: return "TERM";
25: if (this == GLOBALDECL)
26: return "GLOBALDECL";
27: if (this == TACLET)
28: return "TACLET";
29: if (this == PROBLEM)
30: return "PROBLEM";
31: return "UNKNOWN";
32: }
33: }
|