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.proof.mgt;
09:
10: import de.uka.ilkd.key.java.Expression;
11: import de.uka.ilkd.key.logic.op.Modality;
12:
13: public class MethodContractInstantiation {
14:
15: private Expression[] args;
16: private Expression receiver;
17: private Expression result;
18: private Modality modality;
19:
20: public MethodContractInstantiation(Expression receiver,
21: Expression[] args, Expression result, Modality modality) {
22: this .args = args;
23: this .receiver = receiver;
24: this .result = result;
25: this .modality = modality;
26: }
27:
28: public Expression getArgumentAt(int i) {
29: return args[i];
30: }
31:
32: public int getArgumentCount() {
33: return args.length;
34: }
35:
36: public Expression getResult() {
37: return result;
38: }
39:
40: public Expression getReceiver() {
41: return receiver;
42: }
43:
44: public Modality getModality() {
45: return modality;
46: }
47: }
|