summaryrefslogtreecommitdiffstats
path: root/tools/signature-tools/templates/ClassOverviewPage.st
blob: 45b4c1c67fe8c37101072f2e552da36d6c8c610d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd">
<html>
<head>
$Common_meta()$
<title>
$class_delta.to.packageName$.$class_delta.to.name$
</title>
</head>
<body>

<div class="body">

$Header()$

<div class="content">
<h2>Class $class_delta.to.packageName$.$class_delta.to:ClassReferenceLink()$</h2>
<br/>

$if(has_class_signature_delta)$
<table summary="Signature Difference" border="1" width="100%">
  <tr>
    <th colspan=3>Signature Difference</th>
  </tr>
  <tbody>
    <tr class="default">
      <td>$SigClassDefinition(element=class_delta.to)$</td>
      <td>
        $if(class_delta.annotationDeltas)$   $MultiSubDelta(desc="Annotations Changed:", deltas=class_delta.annotationDeltas)$      $endif$
        $if(class_delta.modifierDeltas)$     $MultiSubDelta(desc="Modifiers Changed:", deltas=class_delta.modifierDeltas)$          $endif$
        $if(class_delta.typeVariableDeltas)$ $MultiSubDelta(desc="Type Variables Changed:", deltas=class_delta.typeVariableDeltas)$ $endif$
        $if(class_delta.superClassDelta)$    $SingleSubDelta(desc="Superclass Changed", delta=class_delta.superClassDelta)$               $endif$
        $if(class_delta.interfaceDeltas)$    $MultiSubDelta(desc="Interfaces Changed:", deltas=class_delta.interfaceDeltas)$        $endif$
      </td>
    </tr>
  </tbody>
</table>
<br/>
$endif$

$! Annotation Fields !$

$if(removed_annotation_fields)$
$Table(name="Removed Annotation Fields", rows=removed_annotation_fields:{$it.from:ModelElementRow()$})$
<br/>
$endif$

$if(added_annotation_fields)$
$Table(name="Added Annotation Fields", rows=added_annotation_fields:{$it.to:ModelElementRow()$})$
<br/>
$endif$

$if(changed_annotation_fields)$
$Table(name="Changed Annotation Fields", rows=changed_annotation_fields:DeltaTableRow())$
<br/>
$endif$


$! --------Enum Constants-------- !$

$if(removed_enum_constants)$
$Table(name="Removed Enum Constants", rows=removed_enum_constants:{$it.from:ModelElementRow()$})$
<br/>
$endif$

$if(added_enum_constants)$
$Table(name="Added Enum Constants", rows=added_enum_constants:{$it.to:ModelElementRow()$})$
<br/>
$endif$

$if(changed_enum_constants)$
$Table(name="Changed Enum Constants", rows=changed_enum_constants:DeltaTableRow())$
<br/>
$endif$


$! Fields !$

$if(removed_fields)$
$Table(name="Removed Fields", rows=removed_fields:{$it.from:ModelElementRow()$})$
<br/>
$endif$

$if(added_fields)$
$Table(name="Added Fields", rows=added_fields:{$it.to:ModelElementRow()$})$
<br/>
$endif$

$if(changed_fields)$
$Table(name="Changed Fields", rows=changed_fields:DeltaTableRow())$
<br/>
$endif$


$! Constructors !$

$if(removed_constructors)$
$Table(name="Removed Constructors", rows=removed_constructors:{$it.from:ModelElementRow()$})$
<br/>
$endif$

$if(added_constructors)$
$Table(name="Added Constructors", rows=added_constructors:{$it.to:ModelElementRow()$})$
<br/>
$endif$

$if(changed_constructors)$
$Table(name="Changed Constructors", rows=changed_constructors:DeltaTableRow())$
<br/>
$endif$


$! Methods !$

$if(removed_methods)$
$Table(name="Removed Methods", rows=removed_methods:{$it.from:ModelElementRow()$})$
<br/>
$endif$

$if(added_methods)$
$Table(name="Added Methods", rows=added_methods:{$it.to:ModelElementRow()$})$
<br/>
$endif$

$if(changed_methods)$
$Table(name="Changed Methods", rows=changed_methods:DeltaTableRow())$
<br/>
$endif$
</div>
</div>
</body>
</html>