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.logic;
09:
10: import java.util.HashMap;
11: import java.util.Iterator;
12:
13: import de.uka.ilkd.key.java.SourceElement;
14:
15: public class MultiRenamingTable extends RenamingTable {
16:
17: HashMap hmap;
18:
19: public MultiRenamingTable(HashMap hmap) {
20: this .hmap = hmap;
21: }
22:
23: public SourceElement getRenaming(SourceElement se) {
24: return (SourceElement) hmap.get(se);
25: }
26:
27: public Iterator getRenamingIterator() {
28: return hmap.keySet().iterator();
29: }
30:
31: public String toString() {
32: return ("MultiRenamingTable: " + hmap);
33: }
34:
35: public HashMap getHashMap() {
36: return hmap;
37: }
38:
39: }
|