author | Claus Gittinger <cg@exept.de> |
Thu, 05 Mar 2020 11:17:28 +0100 | |
changeset 4561 | eace75531554 |
parent 3695 | e3c9970df253 |
child 3838 | 474d8ec95b33 |
permissions | -rw-r--r-- |
798 | 1 |
" |
2 |
COPYRIGHT (c) 1999 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 |
" |
|
957 | 12 |
"{ Package: 'stx:libbasic3' }" |
13 |
||
797 | 14 |
ClassChange subclass:#ClassInstVarDefinitionChange |
2621
f24a15b5d9b9
visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
15 |
instanceVariableNames:'classInstVarNames' |
797 | 16 |
classVariableNames:'' |
17 |
poolDictionaries:'' |
|
18 |
category:'System-Changes' |
|
19 |
! |
|
20 |
||
798 | 21 |
!ClassInstVarDefinitionChange class methodsFor:'documentation'! |
22 |
||
23 |
copyright |
|
24 |
" |
|
25 |
COPYRIGHT (c) 1999 by eXept Software AG |
|
26 |
All Rights Reserved |
|
27 |
||
28 |
This software is furnished under a license and may be used |
|
29 |
only in accordance with the terms of that license and with the |
|
30 |
inclusion of the above copyright notice. This software may not |
|
31 |
be provided or otherwise made available to, or used by, any |
|
32 |
other person. No title to or ownership of the software is |
|
33 |
hereby transferred. |
|
34 |
" |
|
35 |
||
36 |
! ! |
|
797 | 37 |
|
2621
f24a15b5d9b9
visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
38 |
!ClassInstVarDefinitionChange methodsFor:'accessing'! |
f24a15b5d9b9
visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
39 |
|
f24a15b5d9b9
visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
40 |
classInstVarNames |
f24a15b5d9b9
visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
41 |
^ classInstVarNames |
f24a15b5d9b9
visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
42 |
! |
f24a15b5d9b9
visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
43 |
|
f24a15b5d9b9
visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
44 |
classInstVarNames:something |
f24a15b5d9b9
visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
45 |
classInstVarNames := something. |
3459 | 46 |
! |
47 |
||
48 |
delta |
|
49 |
| ns changeClass | |
|
50 |
||
51 |
"/ Must enforce current namespace because caller (such as Workspace!!!!!!) enforces |
|
52 |
"/ the namespace wia NameSpaceQuerySignal. Therefore for classes not in Smalltalk. |
|
53 |
"/ `self changeClass` will always return nil, sigh. |
|
54 |
ns := nameSpaceName notNil ifTrue:[(NameSpace name: nameSpaceName)] ifFalse:[nil]. |
|
55 |
Class nameSpaceQuerySignal answer: nil do:[ |
|
56 |
changeClass := self changeClass. |
|
57 |
changeClass isNil ifTrue:[^#+]. |
|
58 |
]. |
|
59 |
||
3695
e3c9970df253
class: ClassInstVarDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
3504
diff
changeset
|
60 |
^ self classInstVarNames = changeClass instanceVariableNames ifTrue:[#'='] ifFalse:[#'~'] |
3459 | 61 |
|
62 |
"Created: / 13-11-2013 / 17:58:17 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
2621
f24a15b5d9b9
visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
63 |
! ! |
f24a15b5d9b9
visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
64 |
|
797 | 65 |
!ClassInstVarDefinitionChange methodsFor:'comparing'! |
66 |
||
67 |
isForSameAs:changeB |
|
68 |
"return true, if the given change represents a change for the same |
|
69 |
thingy as the receiver (i.e. same method, same definition etc.)." |
|
70 |
||
71 |
changeB isClassInstVarDefinitionChange ifFalse:[^ false]. |
|
72 |
||
73 |
^ className = changeB className |
|
74 |
||
75 |
! |
|
76 |
||
77 |
sameAs:changeB |
|
78 |
"return true, if the given change represents the same change as the receiver." |
|
79 |
||
80 |
(self isForSameAs:changeB) ifFalse:[^ false]. |
|
81 |
^ self sameSourceAs:changeB |
|
82 |
||
83 |
||
84 |
! ! |
|
85 |
||
962 | 86 |
!ClassInstVarDefinitionChange methodsFor:'printing & storing'! |
797 | 87 |
|
88 |
printOn:aStream |
|
891 | 89 |
"/ aStream nextPutAll:className; nextPutAll:' instanceVariableNames:' |
2045 | 90 |
aStream nextPutAll:source string |
797 | 91 |
|
92 |
||
93 |
! ! |
|
94 |
||
3504
76978397c0f4
category change for isXXX testers;
Claus Gittinger <cg@exept.de>
parents:
3459
diff
changeset
|
95 |
!ClassInstVarDefinitionChange methodsFor:'testing'! |
797 | 96 |
|
97 |
isClassInstVarDefinitionChange |
|
98 |
^ true |
|
99 |
||
100 |
||
101 |
! ! |
|
102 |
||
2621
f24a15b5d9b9
visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
103 |
!ClassInstVarDefinitionChange methodsFor:'visiting'! |
f24a15b5d9b9
visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
104 |
|
f24a15b5d9b9
visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
105 |
acceptChangeVisitor:aVisitor |
f24a15b5d9b9
visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
106 |
^ aVisitor visitClassInstVarDefinitionChange:self. |
f24a15b5d9b9
visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
107 |
|
f24a15b5d9b9
visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
108 |
"Created: / 25-11-2011 / 17:13:30 / cg" |
f24a15b5d9b9
visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
109 |
! ! |
f24a15b5d9b9
visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents:
2045
diff
changeset
|
110 |
|
797 | 111 |
!ClassInstVarDefinitionChange class methodsFor:'documentation'! |
112 |
||
113 |
version |
|
3695
e3c9970df253
class: ClassInstVarDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
3504
diff
changeset
|
114 |
^ '$Header: /cvs/stx/stx/libbasic3/ClassInstVarDefinitionChange.st,v 1.10 2014-12-29 20:35:51 cg Exp $' |
797 | 115 |
! ! |
3459 | 116 |