author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Tue, 29 Jan 2013 14:40:26 +0000 | |
branch | jv |
changeset 3121 | 19723298dd2c |
parent 3042 | 48e76977cdc3 |
child 3128 | 87750af738dc |
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 |
||
14 |
ClassChange subclass:#ClassCategoryChange |
|
15 |
instanceVariableNames:'category' |
|
16 |
classVariableNames:'' |
|
17 |
poolDictionaries:'' |
|
18 |
category:'System-Changes' |
|
19 |
! |
|
20 |
||
1984 | 21 |
!ClassCategoryChange class methodsFor:'documentation'! |
22 |
||
23 |
copyright |
|
24 |
" |
|
25 |
COPYRIGHT (c) 2002 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 |
" |
|
2166 | 35 |
! |
36 |
||
37 |
documentation |
|
38 |
" |
|
39 |
A changed class category |
|
40 |
" |
|
1984 | 41 |
! ! |
1177 | 42 |
|
43 |
!ClassCategoryChange methodsFor:'accessing'! |
|
44 |
||
45 |
category |
|
46 |
^ category |
|
47 |
! |
|
48 |
||
49 |
category:aCategory |
|
50 |
^ category := aCategory |
|
51 |
! |
|
52 |
||
53 |
className:clsName category:aCategoryString |
|
54 |
className := clsName. |
|
55 |
category := aCategoryString |
|
56 |
! ! |
|
57 |
||
58 |
!ClassCategoryChange methodsFor:'comparing'! |
|
59 |
||
60 |
isForSameAs:changeB |
|
61 |
"return true, if the given change represents a change for the same |
|
62 |
thingy as the receiver (i.e. same method, same definition etc.)." |
|
63 |
||
64 |
changeB isClassCategoryChange ifFalse:[^ false]. |
|
65 |
^ className = changeB className |
|
66 |
! |
|
67 |
||
68 |
sameAs:changeB |
|
69 |
"return true, if the given change represents the same change as the receiver." |
|
70 |
||
71 |
changeB isClassCategoryChange ifFalse:[^ false]. |
|
72 |
className = changeB className ifFalse:[^ false]. |
|
73 |
^ category = changeB category |
|
74 |
! |
|
75 |
||
76 |
source |
|
77 |
"synthesize the changes source" |
|
78 |
||
79 |
^ className , ' category: ' , category storeString |
|
80 |
! ! |
|
81 |
||
82 |
!ClassCategoryChange methodsFor:'printing & storing'! |
|
83 |
||
84 |
printOn:aStream |
|
85 |
"append a user printed representation of the receiver to aStream. |
|
86 |
The format is suitable for a human - not meant to be read back." |
|
87 |
||
88 |
aStream nextPutAll:className; nextPutAll:' category:' |
|
89 |
! |
|
90 |
||
91 |
printWithoutClassNameOn:aStream |
|
92 |
(className endsWith:' class') ifTrue:[ |
|
93 |
aStream nextPutAll:'class ' |
|
94 |
]. |
|
95 |
aStream nextPutAll:'category:' |
|
96 |
! ! |
|
97 |
||
98 |
!ClassCategoryChange methodsFor:'queries'! |
|
99 |
||
100 |
isClassCategoryChange |
|
101 |
^ true |
|
102 |
! ! |
|
103 |
||
2619
e95fac1416fb
visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents:
2166
diff
changeset
|
104 |
!ClassCategoryChange methodsFor:'visiting'! |
e95fac1416fb
visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents:
2166
diff
changeset
|
105 |
|
e95fac1416fb
visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents:
2166
diff
changeset
|
106 |
acceptChangeVisitor:aVisitor |
e95fac1416fb
visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents:
2166
diff
changeset
|
107 |
^ aVisitor visitClassCategoryChange:self. |
e95fac1416fb
visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents:
2166
diff
changeset
|
108 |
|
e95fac1416fb
visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents:
2166
diff
changeset
|
109 |
"Created: / 25-11-2011 / 17:12:41 / cg" |
e95fac1416fb
visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents:
2166
diff
changeset
|
110 |
! ! |
e95fac1416fb
visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents:
2166
diff
changeset
|
111 |
|
1177 | 112 |
!ClassCategoryChange class methodsFor:'documentation'! |
113 |
||
114 |
version |
|
3121
19723298dd2c
Bugfix: reading of Java class extensions methods.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3042
diff
changeset
|
115 |
^ '$Header: ClassCategoryChange.st 1909 2012-03-31 00:14:49Z vranyj1 $' |
19723298dd2c
Bugfix: reading of Java class extensions methods.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3042
diff
changeset
|
116 |
! |
19723298dd2c
Bugfix: reading of Java class extensions methods.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3042
diff
changeset
|
117 |
|
19723298dd2c
Bugfix: reading of Java class extensions methods.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3042
diff
changeset
|
118 |
version_HG |
19723298dd2c
Bugfix: reading of Java class extensions methods.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3042
diff
changeset
|
119 |
|
19723298dd2c
Bugfix: reading of Java class extensions methods.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3042
diff
changeset
|
120 |
^ '$Changeset: <not expanded> $' |
3012 | 121 |
! |
122 |
||
123 |
version_SVN |
|
3121
19723298dd2c
Bugfix: reading of Java class extensions methods.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3042
diff
changeset
|
124 |
^ '§Id: ClassCategoryChange.st 1909 2012-03-31 00:14:49Z vranyj1 §' |
3012 | 125 |
! ! |
3121
19723298dd2c
Bugfix: reading of Java class extensions methods.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3042
diff
changeset
|
126 |