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.strategy.feature;
12:
13: import de.uka.ilkd.key.logic.PosInOccurrence;
14: import de.uka.ilkd.key.proof.Goal;
15: import de.uka.ilkd.key.rule.TacletApp;
16:
17: /**
18: * Binary features that returns zero iff the if-formulas of a Taclet are
19: * instantiated or the Taclet does not have any if-formulas.
20: */
21: public class MatchedIfFeature extends BinaryTacletAppFeature {
22:
23: public static final Feature INSTANCE = new MatchedIfFeature();
24:
25: private MatchedIfFeature() {
26: }
27:
28: protected boolean filter(TacletApp app, PosInOccurrence pos,
29: Goal goal) {
30: return app.ifInstsComplete();
31: }
32:
33: }
|