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: // This file is part of KeY - Integrated Deductive Software Design
09: // Copyright (C) 2001-2005 Universitaet Karlsruhe, Germany
10: // Universitaet Koblenz-Landau, Germany
11: // 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:
18: package de.uka.ilkd.key.proof.decproc.translation;
19:
20: import de.uka.ilkd.key.logic.op.Operator;
21: import de.uka.ilkd.key.logic.op.ProgramMethod;
22:
23: /** This class represents the translation rule for <tt>Program Method</tt>s.
24: * <p>
25: * They are currently not supported in the translation
26: *
27: * @author akuwertz
28: * @version 1.0, 03/31/2006
29: */
30:
31: public class TranslateProgramMethod implements IOperatorTranslation {
32:
33: /* (non-Javadoc)
34: * @see de.uka.ilkd.key.proof.decproc.translation.IOperatorTranslation#isApplicable(de.uka.ilkd.key.logic.op.Operator)
35: */
36: public boolean isApplicable(Operator op) {
37: return op instanceof ProgramMethod;
38: }
39:
40: /* (non-Javadoc)
41: * @see de.uka.ilkd.key.proof.decproc.translation.IOperatorTranslation#translate(de.uka.ilkd.key.logic.op.Operator, de.uka.ilkd.key.proof.decproc.translation.TermTranslationVisitor)
42: */
43: public Object translate(Operator op,
44: TermTranslationVisitor ttVisitor) {
45: // Because Modalities are currently not translated, this method should not be called!
46: throw new UnsupportedOperationException();
47: }
48: }
|