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: // This file is part of KeY - Integrated Deductive Software Design
10: // Copyright (C) 2001-2004 Universitaet Karlsruhe, Germany
11: // Universitaet Koblenz-Landau, Germany
12: // Chalmers University of Technology, Sweden
13: //
14: // The KeY system is protected by the GNU General Public License.
15: // See LICENSE.TXT for details.
16: package de.uka.ilkd.key.rule.inst;
17:
18: import de.uka.ilkd.key.java.ArrayOfProgramElement;
19: import de.uka.ilkd.key.logic.op.SVSubstitute;
20:
21: public class ProgramList implements SVSubstitute {
22:
23: private final ArrayOfProgramElement list;
24:
25: public ProgramList(ArrayOfProgramElement list) {
26: assert list != null : "Constructor of ProgramList must"
27: + " not be called with null argument";
28: this .list = list;
29: }
30:
31: public ArrayOfProgramElement getList() {
32: return list;
33: }
34:
35: public boolean equals(Object o) {
36: if (!(o instanceof ProgramList)) {
37: return false;
38: }
39: return list.equals(((ProgramList) o).list);
40: }
41:
42: public int hashCode() {
43: return list.hashCode();
44: }
45:
46: }
|