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.casetool;
12:
13: import tudresden.ocl.check.types.Type;
14:
15: /**
16: * @deprecated
17: */
18: public class UMLOCLBehaviouralFeature extends UMLOCLFeature {
19:
20: String name;
21: Type[] params;
22: Type ret;
23:
24: public UMLOCLBehaviouralFeature(String n, Type r) {
25: name = n;
26: ret = r;
27: params = new Type[0];
28: }
29:
30: public UMLOCLBehaviouralFeature(String n, Type r, Type p) {
31: name = n;
32: ret = r;
33: params = new Type[1];
34: params[0] = p;
35: }
36:
37: public UMLOCLBehaviouralFeature(String n, Type r, Type[] ps) {
38: name = n;
39: ret = r;
40: params = ps;
41: }
42:
43: public UMLOCLBehaviouralFeature(String n, Type[] ps) {
44: name = n;
45: params = ps;
46: }
47:
48: public String getName() {
49: return name;
50: }
51:
52: public Type getType() {
53: return ret;
54: }
55:
56: public boolean isQuery() {
57: return true;
58: }
59:
60: public Type[] getParameters() {
61: return params;
62: }
63: }
|