1
|
1 |
"{ Package: 'stx:goodies/metacello' }"
|
|
2 |
|
|
3 |
MetacelloMethodSection subclass:#MetacelloVersionMethodSection
|
|
4 |
instanceVariableNames:'block versionSpec parent methodSections'
|
|
5 |
classVariableNames:''
|
|
6 |
poolDictionaries:''
|
|
7 |
category:'Metacello-Core-Constructors'
|
|
8 |
!
|
|
9 |
|
|
10 |
|
|
11 |
!MetacelloVersionMethodSection methodsFor:'accessing'!
|
|
12 |
|
|
13 |
addMethodSection: methodSection
|
|
14 |
|
|
15 |
methodSection parent: self.
|
|
16 |
self methodSections add: methodSection
|
|
17 |
!
|
|
18 |
|
|
19 |
attributeOrPath
|
|
20 |
| path |
|
|
21 |
^self parent == nil
|
|
22 |
ifTrue: [ self attribute ]
|
|
23 |
ifFalse: [ self parent attributePath , {(self attribute)} ]
|
|
24 |
!
|
|
25 |
|
|
26 |
attributePath
|
|
27 |
| path |
|
|
28 |
path := {self attribute.}.
|
|
29 |
^self parent == nil
|
|
30 |
ifTrue: [ path ]
|
|
31 |
ifFalse: [ self parent attributePath , path ]
|
|
32 |
!
|
|
33 |
|
|
34 |
block
|
|
35 |
^ block
|
|
36 |
!
|
|
37 |
|
|
38 |
block: anObject
|
|
39 |
block := anObject
|
|
40 |
!
|
|
41 |
|
|
42 |
methodSections
|
|
43 |
|
|
44 |
methodSections ifNil: [ methodSections := OrderedCollection new ].
|
|
45 |
^methodSections
|
|
46 |
!
|
|
47 |
|
|
48 |
parent
|
|
49 |
^ parent
|
|
50 |
!
|
|
51 |
|
|
52 |
parent: anObject
|
|
53 |
parent := anObject
|
|
54 |
!
|
|
55 |
|
|
56 |
topParent
|
|
57 |
self parent == nil
|
|
58 |
ifTrue: [ ^ self ].
|
|
59 |
^ self parent topParent
|
|
60 |
!
|
|
61 |
|
|
62 |
versionSpec
|
|
63 |
^ versionSpec
|
|
64 |
!
|
|
65 |
|
|
66 |
versionSpec: anObject
|
|
67 |
versionSpec := anObject
|
|
68 |
! !
|
|
69 |
|
|
70 |
!MetacelloVersionMethodSection class methodsFor:'documentation'!
|
|
71 |
|
|
72 |
version_SVN
|
|
73 |
^ '$Id:: $'
|
|
74 |
! !
|