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.ListOfBuiltInRule;
14: import de.uka.ilkd.key.rule.SLListOfBuiltInRule;
15:
16: /**
17: * Index for managing built-in-rules usch as integer decision or update
18: * simplification rule.
19: */
20: public class BuiltInRuleIndex implements java.io.Serializable {
21:
22: /** list of available built in rules */
23: private ListOfBuiltInRule rules = SLListOfBuiltInRule.EMPTY_LIST;
24:
25: /** constructs empty rule index */
26: public BuiltInRuleIndex() {
27: }
28:
29: /**
30: * creates a new index with the given built-in-rules
31: * @param rules a ListOfBuiltInRule with available built in rules
32: */
33: public BuiltInRuleIndex(ListOfBuiltInRule rules) {
34: this .rules = rules;
35: }
36:
37: /**
38: * returns all available rules
39: */
40: public ListOfBuiltInRule rules() {
41: return rules;
42: }
43:
44: /**
45: * returns a copy of itself
46: */
47: public BuiltInRuleIndex copy() {
48: return this;
49: }
50:
51: }
|