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: // This file is part of KeY - Integrated Deductive Software Design
10: // Copyright (C) 2001-2003 Universitaet Karlsruhe, Germany
11: // and Chalmers University of Technology, Sweden
12: //
13: // The KeY system is protected by the GNU General Public License.
14: // See LICENSE.TXT for details.
15: //
16:
17: package de.uka.ilkd.key.parser.jml;
18:
19: public class NotSupportedExpressionException extends
20: antlr.RecognitionException {
21:
22: private boolean canBeIgnored = false;
23: private String expression = "";
24:
25: public NotSupportedExpressionException(String s) {
26: super ("This feature is not yet supported: " + s);
27: expression = s;
28: }
29:
30: public NotSupportedExpressionException(String s,
31: boolean canBeIgnored) {
32: super ("This feature is not yet supported: " + s);
33: this .canBeIgnored = canBeIgnored;
34: expression = s;
35: }
36:
37: /**
38: * True if ignoring the unsupported expression doesn't change the semantics
39: * of the affected specification.
40: */
41: public boolean canBeIgnored() {
42: return canBeIgnored;
43: }
44:
45: public String expression() {
46: return expression;
47: }
48:
49: }
|