author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Fri, 01 Feb 2019 23:46:31 +0000 | |
branch | jv |
changeset 4396 | 5333bef41730 |
parent 3850 | 461c0b054a4f |
permissions | -rw-r--r-- |
3451 | 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 |
" |
|
3178 | 12 |
"{ Package: 'stx:libbasic3' }" |
13 |
||
3850
461c0b054a4f
Added Bee source writer (both for inidividual classes and for project sources)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3838
diff
changeset
|
14 |
"{ NameSpace: Smalltalk }" |
461c0b054a4f
Added Bee source writer (both for inidividual classes and for project sources)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3838
diff
changeset
|
15 |
|
3178 | 16 |
ClassChange subclass:#TraitClassTraitDefinitionChange |
17 |
instanceVariableNames:'baseTrait traitComposition' |
|
18 |
classVariableNames:'' |
|
19 |
poolDictionaries:'' |
|
20 |
category:'System-Changes' |
|
21 |
! |
|
22 |
||
23 |
!TraitClassTraitDefinitionChange class methodsFor:'documentation'! |
|
24 |
||
3451 | 25 |
copyright |
26 |
" |
|
27 |
COPYRIGHT (c) 2006 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 |
" |
|
37 |
! |
|
38 |
||
3178 | 39 |
documentation |
40 |
" |
|
41 |
instances represent trait changes. |
|
42 |
These are not present or supported (currently) in st/x, but may be encountered |
|
43 |
when reading a monticello package containing traits. |
|
44 |
Mostly experimental. |
|
45 |
" |
|
46 |
! ! |
|
47 |
||
48 |
!TraitClassTraitDefinitionChange methodsFor:'accessing'! |
|
49 |
||
50 |
baseTrait |
|
51 |
^ baseTrait |
|
52 |
! |
|
53 |
||
54 |
baseTrait:something |
|
55 |
baseTrait := something. |
|
56 |
! |
|
57 |
||
58 |
source |
|
59 |
^ String streamContents:[:s | |
|
60 |
s |
|
61 |
nextPutAll: baseTrait; |
|
62 |
nextPutAll: ' classTrait '; cr; |
|
63 |
nextPutAll: ' uses: '. |
|
64 |
traitComposition isEmptyOrNil ifTrue:[ |
|
65 |
s nextPutAll: '{}'. |
|
66 |
] ifFalse:[ |
|
67 |
s nextPutAll: traitComposition. |
|
68 |
]. |
|
69 |
] |
|
70 |
! |
|
71 |
||
72 |
traitComposition |
|
73 |
^ traitComposition |
|
74 |
! |
|
75 |
||
76 |
traitComposition:something |
|
77 |
traitComposition := something. |
|
78 |
! ! |
|
79 |
||
80 |
!TraitClassTraitDefinitionChange methodsFor:'printing & storing'! |
|
81 |
||
82 |
printOn:aStream |
|
83 |
aStream nextPutAll:baseTrait; nextPutAll:' {class trait definition}' |
|
84 |
! ! |
|
85 |
||
86 |
!TraitClassTraitDefinitionChange class methodsFor:'documentation'! |
|
87 |
||
88 |
version |
|
3451 | 89 |
^ '$Header: /cvs/stx/stx/libbasic3/TraitClassTraitDefinitionChange.st,v 1.2 2014-02-05 17:52:04 cg Exp $' |
3178 | 90 |
! |
91 |
||
92 |
version_CVS |
|
3451 | 93 |
^ '$Header: /cvs/stx/stx/libbasic3/TraitClassTraitDefinitionChange.st,v 1.2 2014-02-05 17:52:04 cg Exp $' |
3178 | 94 |
! ! |
95 |