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.unittest;
09:
10: import de.uka.ilkd.key.java.expression.literal.*;
11: import de.uka.ilkd.key.java.*;
12:
13: import java.util.*;
14:
15: public class IntValueContainer extends ValueContainer {
16:
17: public IntValueContainer(Integer i) {
18: super (i);
19: }
20:
21: public IntValueContainer(Object o1, Object o2) {
22: super (o1, o2);
23: }
24:
25: public ValueContainer union(ValueContainer v) {
26: return new IntValueContainer(this , v);
27: }
28:
29: public Expression[] getValuesAsExpressions() {
30: Expression[] res = new Expression[values.size()];
31: int i = 0;
32: Iterator it = values.iterator();
33: while (it.hasNext()) {
34: res[i++] = new IntLiteral(((Integer) it.next()).intValue());
35: }
36: return res;
37: }
38: }
|