Skip to content

Commit f217dfb

Browse files
authored
v2.4 source files
1 parent b6035b1 commit f217dfb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+529
-247
lines changed

AbsMorphism.class

3.71 KB
Binary file not shown.

Association.class

12.6 KB
Binary file not shown.

Attribute.class

48 KB
Binary file not shown.

BOp.java

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
/* package: B */
55
/******************************
6-
* Copyright (c) 2003,2019 Kevin Lano
6+
* Copyright (c) 2003--2024 Kevin Lano
77
* This program and the accompanying materials are made available under the
88
* terms of the Eclipse Public License 2.0 which is available at
99
* http://www.eclipse.org/legal/epl-2.0
@@ -13,12 +13,12 @@
1313

1414
public class BOp extends ModelElement
1515
{ private String result = null;
16-
private List params = new Vector(); // of String
16+
private Vector params = new Vector(); // of String
1717
private BExpression pre;
1818
private BStatement code;
1919
private String signature;
2020

21-
public BOp(String nme, String res, List pars,
21+
public BOp(String nme, String res, Vector pars,
2222
BExpression p, BStatement s)
2323
{ super(nme);
2424
result = res;
@@ -36,9 +36,12 @@ public String getSignature()
3636
public String getResult()
3737
{ return result; }
3838

39-
public List getParameters()
39+
public Vector getParameters()
4040
{ return params; }
4141

42+
public void addParameter(Attribute att)
43+
{ params.add(att.getName()); }
44+
4245
public BExpression getPre()
4346
{ return pre; }
4447

@@ -48,6 +51,12 @@ public void addPre(BExpression p)
4851
public BStatement getCode()
4952
{ return code; }
5053

54+
public Type getType()
55+
{ return null; }
56+
57+
public void setType(Type t)
58+
{ }
59+
5160
public void generateJava(java.io.PrintWriter out) // not used
5261
{ out.println(" public void " + getName() + "()"); }
5362

BOperation.class

3.32 KB
Binary file not shown.

BTypeDef.java

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import java.util.Vector;
22

33
/******************************
4-
* Copyright (c) 2003,2019 Kevin Lano
4+
* Copyright (c) 2003--2024 Kevin Lano
55
* This program and the accompanying materials are made available under the
66
* terms of the Eclipse Public License 2.0 which is available at
77
* http://www.eclipse.org/legal/epl-2.0
@@ -20,6 +20,18 @@ public BTypeDef(String name, Vector vals)
2020
public void generateJava(java.io.PrintWriter out)
2121
{ out.print(getName()); } // not used.
2222

23+
public Vector getParameters()
24+
{ return new Vector(); }
25+
26+
public void addParameter(Attribute att)
27+
{ }
28+
29+
public Type getType()
30+
{ return null; }
31+
32+
public void setType(Type t)
33+
{ }
34+
2335
public String toString()
2436
{ String res = getName();
2537
if (values == null)

BasicState.class

708 Bytes
Binary file not shown.

BehaviouralFeature.class

2 Bytes
Binary file not shown.

BidirectionalAssociation.java

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import java.io.*;
33

44
/******************************
5-
* Copyright (c) 2003,2019 Kevin Lano
5+
* Copyright (c) 2003--2024 Kevin Lano
66
* This program and the accompanying materials are made available under the
77
* terms of the Eclipse Public License 2.0 which is available at
88
* http://www.eclipse.org/legal/epl-2.0
@@ -23,5 +23,17 @@ public BidirectionalAssociation(Entity e1, Entity e2, int c1, int c2,
2323

2424
public void generateJava(PrintWriter out) { }
2525

26+
public Vector getParameters()
27+
{ return new Vector(); }
28+
29+
public void addParameter(Attribute att)
30+
{ }
31+
32+
public Type getType()
33+
{ return null; }
34+
35+
public void setType(Type t)
36+
{ }
37+
2638
}
2739

CGSpec.class

2.88 KB
Binary file not shown.

0 commit comments

Comments
 (0)