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: package de.uka.ilkd.key.rule.updatesimplifier;
09:
10: import de.uka.ilkd.key.logic.Term;
11: import de.uka.ilkd.key.logic.op.ProgramMethod;
12: import de.uka.ilkd.key.rule.UpdateSimplifier;
13:
14: public class ApplyOnProgramMethod extends ApplyOnModality {
15:
16: public ApplyOnProgramMethod(UpdateSimplifier updateSimplifier,
17: boolean deletionEnabled) {
18: super (updateSimplifier, deletionEnabled);
19: }
20:
21: /* (non-Javadoc)
22: * @see de.uka.ilkd.key.rule.IUpdateRule#isApplicable(de.uka.ilkd.key.rule.updatesimplifier.Update, de.uka.ilkd.key.logic.Term)
23: */
24: public boolean isApplicable(Update update, Term target) {
25: return target.op() instanceof ProgramMethod;
26: }
27:
28: }
|