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.proof;
12:
13: import de.uka.ilkd.key.rule.SLListOfRuleSet;
14: import de.uka.ilkd.key.rule.Taclet;
15:
16: /**
17: * Filter that selects taclets that belong to at least one
18: * rule set, i.e. taclets that can be applied automatically.
19: */
20: public class AnyRuleSetTacletFilter extends TacletFilter {
21:
22: private AnyRuleSetTacletFilter() {
23: }
24:
25: /**
26: * @return true iff <code>taclet</code> should be included in the
27: * result
28: */
29: public boolean filter(Taclet taclet) {
30: return taclet.getRuleSets() != SLListOfRuleSet.EMPTY_LIST;
31: }
32:
33: public final static TacletFilter INSTANCE = new AnyRuleSetTacletFilter();
34: }
|