Skip to content

Commit

Permalink
Changes the template to generate VDMRecord
Browse files Browse the repository at this point in the history
  • Loading branch information
idhugoid committed Aug 11, 2021
1 parent b5af1c9 commit 8e73876
Show file tree
Hide file tree
Showing 90 changed files with 131 additions and 131 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
static class $node.getName() implements Record
static class $node.getName() implements VDMRecord
{
#foreach( $field in $node.getFields() )
$JavaFormat.format($field)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public class Entry {
return "Entry{}";
}

public static class Vec implements Record {
public static class Vec implements VDMRecord {
public Number x;
public Number y;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ public class Account {
+ "}";
}

public static class Transaction implements Record {
public static class Transaction implements VDMRecord {
public VDMSeq date;
public Number cardId;
public Number amount;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ public class Account {
+ "}";
}

public static class Transaction implements Record {
public static class Transaction implements VDMRecord {
public VDMSeq date;
public Number cardId;
public Number amount;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class Entry {
return "Entry{}";
}

public static class A implements Record {
public static class A implements VDMRecord {
public VDMSeq es;

public A(final VDMSeq _es) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class Entry {
return "Entry{}";
}

public static class A implements Record {
public static class A implements VDMRecord {
public VDMSeq bs;

public A(final VDMSeq _bs) {
Expand Down Expand Up @@ -62,7 +62,7 @@ public class Entry {
}
}

public static class B implements Record {
public static class B implements VDMRecord {
public C c;

public B(final C _c) {
Expand Down Expand Up @@ -97,7 +97,7 @@ public class Entry {
}
}

public static class C implements Record {
public static class C implements VDMRecord {
public Entry e;

public C(final Entry _e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class Entry {
return "Entry{}";
}

private static class R implements Record {
private static class R implements VDMRecord {
public Number x;

public R(final Number _x) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class Entry {
return "Entry{}";
}

public static class M implements Record {
public static class M implements VDMRecord {

public M() {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class Entry {
return "Entry{}";
}

public static class R implements Record {
public static class R implements VDMRecord {
public Entry e;

public R(final Entry _e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class Entry {
return "Entry{}";
}

public static class R1 implements Record {
public static class R1 implements VDMRecord {
public R2 r2;

public R1(final R2 _r2) {
Expand Down Expand Up @@ -61,7 +61,7 @@ public class Entry {
}
}

public static class R2 implements Record {
public static class R2 implements VDMRecord {
public R3 r3;

public R2(final R3 _r3) {
Expand Down Expand Up @@ -96,7 +96,7 @@ public class Entry {
}
}

public static class R3 implements Record {
public static class R3 implements VDMRecord {
public Entry e;

public R3(final Entry _e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class Entry {
return "Entry{}";
}

public static class R1 implements Record {
public static class R1 implements VDMRecord {
public R2 r2;

public R1(final R2 _r2) {
Expand Down Expand Up @@ -61,7 +61,7 @@ public class Entry {
}
}

public static class R2 implements Record {
public static class R2 implements VDMRecord {
public Entry e;

public R2(final Entry _e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class Entry {
return "Entry{" + "m := " + Utils.toString(m) + "}";
}

private static class Rec implements Record {
private static class Rec implements VDMRecord {
public Number field;

public Rec(final Number _field) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class Entry {
return "Entry{}";
}

public static class A implements Record {
public static class A implements VDMRecord {
public VDMMap x;

public A(final VDMMap _x) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class Entry {
return "Entry{}";
}

private static class R implements Record {
private static class R implements VDMRecord {
public Number x;

public R(final Number _x) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class Entry {
return "Entry{}";
}

private static class NatList implements Record {
private static class NatList implements VDMRecord {
public Number e;
public NatList t;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class Entry {
return "Entry{}";
}

public static class Rec implements Record {
public static class Rec implements VDMRecord {
public Number a;
public Boolean b;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public class Entry {
return "Entry{}";
}

public static class Rec implements Record {
public static class Rec implements VDMRecord {
public Number x;
public Boolean b;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class Entry {
return "Entry{}";
}

public static class Rec1 implements Record {
public static class Rec1 implements VDMRecord {
public Number a;
public Rec2 b;

Expand Down Expand Up @@ -67,7 +67,7 @@ public class Entry {
}
}

public static class Rec2 implements Record {
public static class Rec2 implements VDMRecord {
public Number c;
public Rec1 d;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public class Entry {
return "Entry{}";
}

public static class Rec implements Record {
public static class Rec implements VDMRecord {
public Number x;
public Boolean b;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class Entry {
return "Entry{}";
}

public static class Rec implements Record {
public static class Rec implements VDMRecord {
public Number x;
public Boolean b;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class Entry {
return "Entry{}";
}

public static class A implements Record {
public static class A implements VDMRecord {
public Number _X_;
public Number _X__1;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class A {
return "A{}";
}

public static class Vector2D implements Record {
public static class Vector2D implements VDMRecord {
public Number x;
public Number y;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class A {
return "A{}";
}

public static class Rec implements Record {
public static class Rec implements VDMRecord {

public Rec() {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class A {
return "A{}";
}

public static class Node implements Record {
public static class Node implements VDMRecord {
public Number e;
public Node r;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public class Entry {
return "Entry{}";
}

private static class R implements Record {
private static class R implements VDMRecord {
public Number x;

public R(final Number _x) {
Expand Down
Loading

0 comments on commit 8e73876

Please sign in to comment.