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.termfeature;
12:
13: import de.uka.ilkd.key.logic.Term;
14: import de.uka.ilkd.key.logic.op.IfThenElse;
15: import de.uka.ilkd.key.logic.op.Junctor;
16: import de.uka.ilkd.key.logic.op.Op;
17: import de.uka.ilkd.key.logic.op.Operator;
18: import de.uka.ilkd.key.logic.op.Quantifier;
19:
20: public class AtomTermFeature extends BinaryTermFeature {
21:
22: public static final TermFeature INSTANCE = new AtomTermFeature();
23:
24: private AtomTermFeature() {
25: }
26:
27: protected boolean filter(Term term) {
28: final Operator op = term.op();
29: return !(op instanceof Junctor || op == Op.EQV
30: || op instanceof IfThenElse || op instanceof Quantifier);
31: }
32:
33: }
|