author | Claus Gittinger <cg@exept.de> |
Mon, 20 Aug 2018 10:11:25 +0200 | |
changeset 4346 | 6604af2f1554 |
parent 3958 | 3b20c3b856c7 |
child 3960 | 3343243e9f6e |
permissions | -rw-r--r-- |
1984 | 1 |
" |
2 |
COPYRIGHT (c) 2002 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 |
" |
|
1177 | 12 |
"{ Package: 'stx:libbasic3' }" |
13 |
||
3958 | 14 |
"{ NameSpace: Smalltalk }" |
15 |
||
1177 | 16 |
ClassChange subclass:#ClassCategoryChange |
17 |
instanceVariableNames:'category' |
|
18 |
classVariableNames:'' |
|
19 |
poolDictionaries:'' |
|
20 |
category:'System-Changes' |
|
21 |
! |
|
22 |
||
1984 | 23 |
!ClassCategoryChange class methodsFor:'documentation'! |
24 |
||
25 |
copyright |
|
26 |
" |
|
27 |
COPYRIGHT (c) 2002 by eXept Software AG |
|
28 |
All Rights Reserved |
|
29 |
||
30 |
This software is furnished under a license and may be used |
|
31 |
only in accordance with the terms of that license and with the |
|
32 |
inclusion of the above copyright notice. This software may not |
|
33 |
be provided or otherwise made available to, or used by, any |
|
34 |
other person. No title to or ownership of the software is |
|
35 |
hereby transferred. |
|
36 |
" |
|
2166 | 37 |
! |
38 |
||
39 |
documentation |
|
40 |
" |
|
41 |
A changed class category |
|
42 |
" |
|
1984 | 43 |
! ! |
1177 | 44 |
|
45 |
!ClassCategoryChange methodsFor:'accessing'! |
|
46 |
||
47 |
category |
|
48 |
^ category |
|
49 |
! |
|
50 |
||
51 |
category:aCategory |
|
3436 | 52 |
category := aCategory |
1177 | 53 |
! |
54 |
||
55 |
className:clsName category:aCategoryString |
|
56 |
className := clsName. |
|
57 |
category := aCategoryString |
|
58 |
! ! |
|
59 |
||
60 |
!ClassCategoryChange methodsFor:'comparing'! |
|
61 |
||
62 |
isForSameAs:changeB |
|
63 |
"return true, if the given change represents a change for the same |
|
64 |
thingy as the receiver (i.e. same method, same definition etc.)." |
|
65 |
||
66 |
changeB isClassCategoryChange ifFalse:[^ false]. |
|
67 |
^ className = changeB className |
|
68 |
! |
|
69 |
||
70 |
sameAs:changeB |
|
71 |
"return true, if the given change represents the same change as the receiver." |
|
72 |
||
73 |
changeB isClassCategoryChange ifFalse:[^ false]. |
|
74 |
className = changeB className ifFalse:[^ false]. |
|
75 |
^ category = changeB category |
|
76 |
! |
|
77 |
||
78 |
source |
|
79 |
"synthesize the changes source" |
|
80 |
||
81 |
^ className , ' category: ' , category storeString |
|
82 |
! ! |
|
83 |
||
84 |
!ClassCategoryChange methodsFor:'printing & storing'! |
|
85 |
||
86 |
printOn:aStream |
|
87 |
"append a user printed representation of the receiver to aStream. |
|
88 |
The format is suitable for a human - not meant to be read back." |
|
89 |
||
3958 | 90 |
aStream |
91 |
nextPutAll:className; |
|
92 |
nextPutAll:' category:'; |
|
93 |
nextPutAll:(category storeString) |
|
1177 | 94 |
! |
95 |
||
96 |
printWithoutClassNameOn:aStream |
|
97 |
(className endsWith:' class') ifTrue:[ |
|
98 |
aStream nextPutAll:'class ' |
|
99 |
]. |
|
3958 | 100 |
aStream nextPutAll:'category:'. |
101 |
aStream nextPutAll:category storeString |
|
1177 | 102 |
! ! |
103 |
||
3495
01df061539ab
category change for isXXX testers;
Claus Gittinger <cg@exept.de>
parents:
3436
diff
changeset
|
104 |
!ClassCategoryChange methodsFor:'testing'! |
1177 | 105 |
|
106 |
isClassCategoryChange |
|
107 |
^ true |
|
108 |
! ! |
|
109 |
||
2619
e95fac1416fb
visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents:
2166
diff
changeset
|
110 |
!ClassCategoryChange methodsFor:'visiting'! |
e95fac1416fb
visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents:
2166
diff
changeset
|
111 |
|
e95fac1416fb
visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents:
2166
diff
changeset
|
112 |
acceptChangeVisitor:aVisitor |
e95fac1416fb
visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents:
2166
diff
changeset
|
113 |
^ aVisitor visitClassCategoryChange:self. |
e95fac1416fb
visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents:
2166
diff
changeset
|
114 |
|
e95fac1416fb
visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents:
2166
diff
changeset
|
115 |
"Created: / 25-11-2011 / 17:12:41 / cg" |
e95fac1416fb
visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents:
2166
diff
changeset
|
116 |
! ! |
e95fac1416fb
visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents:
2166
diff
changeset
|
117 |
|
1177 | 118 |
!ClassCategoryChange class methodsFor:'documentation'! |
119 |
||
120 |
version |
|
3958 | 121 |
^ '$Header$' |
1177 | 122 |
! ! |
3436 | 123 |