author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Fri, 22 Mar 2013 11:11:55 +0000 | |
branch | jv |
changeset 3128 | 87750af738dc |
parent 3125 | 08d6603c4fe9 |
parent 3121 | 19723298dd2c |
child 3219 | 92e64a42ab4e |
permissions | -rw-r--r-- |
3012 | 1 |
" |
2 |
COPYRIGHT (c) 2006 by eXept Software AG |
|
3 |
All Rights Reserved |
|
4 |
||
5 |
This software is furnished under a license and may be used |
|
6 |
only in accordance with the terms of that license and with the |
|
7 |
inclusion of the above copyright notice. This software may not |
|
8 |
be provided or otherwise made available to, or used by, any |
|
9 |
other person. No title to or ownership of the software is |
|
10 |
hereby transferred. |
|
11 |
" |
|
2493 | 12 |
"{ Package: 'stx:libbasic3' }" |
13 |
||
14 |
Object subclass:#ChangeDeltaInformation |
|
15 |
instanceVariableNames:'shortDeltaSymbol' |
|
16 |
classVariableNames:'Unknown Identical Different Added Removed IdenticalButWhiteSpace |
|
17 |
IdenticalButFormat IdenticalSemantically' |
|
18 |
poolDictionaries:'' |
|
19 |
category:'System-Changes' |
|
20 |
! |
|
21 |
||
22 |
!ChangeDeltaInformation class methodsFor:'documentation'! |
|
23 |
||
3012 | 24 |
copyright |
25 |
" |
|
26 |
COPYRIGHT (c) 2006 by eXept Software AG |
|
27 |
All Rights Reserved |
|
28 |
||
29 |
This software is furnished under a license and may be used |
|
30 |
only in accordance with the terms of that license and with the |
|
31 |
inclusion of the above copyright notice. This software may not |
|
32 |
be provided or otherwise made available to, or used by, any |
|
33 |
other person. No title to or ownership of the software is |
|
34 |
hereby transferred. |
|
35 |
" |
|
36 |
! |
|
37 |
||
2493 | 38 |
documentation |
39 |
" |
|
40 |
delta used to return a symbol (#=, #~, #+ or #-); |
|
41 |
for more detail, use instances of me: |
|
42 |
Unknown delta is unknown |
|
43 |
Identical exactly the same |
|
44 |
IdenticalButWhiteSpace code is formatted different, but AST is the same |
|
45 |
SemanticallyIdentical code is different, but semantically the same |
|
46 |
(for example, ifNil: -> isNil ifTrue:) |
|
47 |
Different code is different |
|
48 |
Added method/class is added by change |
|
49 |
Removed method/class is removed by change |
|
50 |
" |
|
51 |
! ! |
|
52 |
||
53 |
!ChangeDeltaInformation class methodsFor:'initialization'! |
|
54 |
||
55 |
initialize |
|
56 |
Unknown := self new shortDeltaSymbol:#'?'. "/ delta is unknown |
|
57 |
Identical := self new shortDeltaSymbol:#'='. "/ exactly the same |
|
58 |
IdenticalButWhiteSpace := self new shortDeltaSymbol:#'W'. "/ code is the same except for indentation |
|
59 |
IdenticalButFormat := self new shortDeltaSymbol:#'F'. "/ code is formatted different, but AST is the same |
|
60 |
IdenticalSemantically := self new shortDeltaSymbol:#'%'. "/ code is different, but semantically the same |
|
61 |
"/ (for example, ifNil: -> isNil ifTrue:) |
|
62 |
Different := self new shortDeltaSymbol:#'~'. "/ code is different |
|
63 |
Added := self new shortDeltaSymbol:#'+'. "/ method/class is added by change |
|
64 |
Removed := self new shortDeltaSymbol:#'-'. "/ method/class is removed by change |
|
65 |
||
66 |
"Created: / 31-08-2011 / 10:09:24 / cg" |
|
67 |
! ! |
|
68 |
||
69 |
!ChangeDeltaInformation class methodsFor:'accessing'! |
|
70 |
||
71 |
added |
|
72 |
"method/class is added by change" |
|
73 |
||
74 |
^ Added |
|
75 |
||
76 |
"Modified (comment): / 31-08-2011 / 10:20:51 / cg" |
|
77 |
! |
|
78 |
||
79 |
different |
|
80 |
"code is different" |
|
81 |
||
82 |
^ Different |
|
83 |
||
84 |
"Modified (comment): / 31-08-2011 / 10:21:07 / cg" |
|
85 |
! |
|
86 |
||
87 |
identical |
|
88 |
"exactly the same" |
|
89 |
||
90 |
^ Identical |
|
91 |
||
92 |
"Modified (comment): / 31-08-2011 / 10:21:18 / cg" |
|
93 |
! |
|
94 |
||
95 |
identicalButFormat |
|
96 |
"code is formatted different, but AST is the same" |
|
97 |
||
98 |
^ IdenticalButFormat |
|
99 |
||
100 |
"Created: / 31-08-2011 / 10:23:18 / cg" |
|
101 |
! |
|
102 |
||
103 |
identicalButWhiteSpace |
|
104 |
"code is the same except for indentation" |
|
105 |
||
106 |
^ IdenticalButWhiteSpace |
|
107 |
||
108 |
"Modified (comment): / 31-08-2011 / 10:23:49 / cg" |
|
109 |
! |
|
110 |
||
111 |
identicalSemantically |
|
112 |
"code is different, but semantically the same. |
|
113 |
(for example, ifNil: -> isNil ifTrue:)" |
|
114 |
||
115 |
^ IdenticalSemantically |
|
116 |
||
117 |
"Modified (comment): / 31-08-2011 / 10:24:04 / cg" |
|
118 |
! |
|
119 |
||
120 |
removed |
|
121 |
"method/class is removed by change" |
|
122 |
||
123 |
^ Removed |
|
124 |
||
125 |
"Modified (comment): / 31-08-2011 / 10:24:14 / cg" |
|
126 |
! |
|
127 |
||
128 |
unknown |
|
129 |
"another change / cannot figure out what has changed" |
|
130 |
||
131 |
^ Unknown |
|
132 |
||
133 |
"Created: / 31-08-2011 / 10:20:13 / cg" |
|
134 |
! ! |
|
135 |
||
136 |
!ChangeDeltaInformation methodsFor:'accessing'! |
|
137 |
||
138 |
shortDeltaSymbol |
|
139 |
^ shortDeltaSymbol |
|
140 |
||
141 |
"Created: / 31-08-2011 / 10:39:01 / cg" |
|
142 |
! |
|
143 |
||
144 |
shortDeltaSymbol:something |
|
145 |
shortDeltaSymbol := something. |
|
146 |
||
147 |
"Created: / 31-08-2011 / 10:39:05 / cg" |
|
148 |
! ! |
|
149 |
||
150 |
!ChangeDeltaInformation class methodsFor:'documentation'! |
|
151 |
||
152 |
version |
|
3121
19723298dd2c
Bugfix: reading of Java class extensions methods.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3042
diff
changeset
|
153 |
^ '$Header: ChangeDeltaInformation.st 1909 2012-03-31 00:14:49Z vranyj1 $' |
2493 | 154 |
! |
155 |
||
156 |
version_CVS |
|
3011
1997ff6e7e55
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2493
diff
changeset
|
157 |
^ '§Header: /cvs/stx/stx/libbasic3/ChangeDeltaInformation.st,v 1.1 2011/08/31 09:45:27 cg Exp §' |
3012 | 158 |
! |
159 |
||
3121
19723298dd2c
Bugfix: reading of Java class extensions methods.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3042
diff
changeset
|
160 |
version_HG |
19723298dd2c
Bugfix: reading of Java class extensions methods.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3042
diff
changeset
|
161 |
|
19723298dd2c
Bugfix: reading of Java class extensions methods.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3042
diff
changeset
|
162 |
^ '$Changeset: <not expanded> $' |
19723298dd2c
Bugfix: reading of Java class extensions methods.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3042
diff
changeset
|
163 |
! |
19723298dd2c
Bugfix: reading of Java class extensions methods.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3042
diff
changeset
|
164 |
|
3012 | 165 |
version_SVN |
3121
19723298dd2c
Bugfix: reading of Java class extensions methods.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3042
diff
changeset
|
166 |
^ '§Id: ChangeDeltaInformation.st 1909 2012-03-31 00:14:49Z vranyj1 §' |
2493 | 167 |
! ! |
168 |
||
3121
19723298dd2c
Bugfix: reading of Java class extensions methods.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3042
diff
changeset
|
169 |
|
3012 | 170 |
ChangeDeltaInformation initialize! |