-
-
Notifications
You must be signed in to change notification settings - Fork 354
/
ShDefaultBuilderEnhancer.class.st
95 lines (73 loc) · 2.8 KB
/
ShDefaultBuilderEnhancer.class.st
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
"
I am notified of all the events and modifications performed by the ShiftClassBuilder.
I am the point of extension to add new features to it in a modular way.
Also I can configure the builder to add more comparers or do additional things.
"
Class {
#name : #ShDefaultBuilderEnhancer,
#superclass : #Object,
#category : #'Shift-ClassBuilder'
}
{ #category : #testing }
ShDefaultBuilderEnhancer class >> isApplicableFor: aBuilder [
^ false
]
{ #category : #'class modifications' }
ShDefaultBuilderEnhancer >> afterMethodsCompiled: builder [
]
{ #category : #migrating }
ShDefaultBuilderEnhancer >> afterMigratingClass: aBuilder installer: anInstaller [
]
{ #category : #migrating }
ShDefaultBuilderEnhancer >> beforeMigratingClass: aBuilder installer: anInstaller [
]
{ #category : #events }
ShDefaultBuilderEnhancer >> classCreated: builder [
]
{ #category : #'class modifications' }
ShDefaultBuilderEnhancer >> compileMethodsFor: aBuilder [
aBuilder compileMethods
]
{ #category : #'class modifications' }
ShDefaultBuilderEnhancer >> configureClass: newClass superclass: superclass withLayoutType: layoutType slots: slots [
newClass superclass: superclass withLayoutType: layoutType slots: slots
]
{ #category : #'class modifications' }
ShDefaultBuilderEnhancer >> configureMetaclass: newMetaclass superclass: superclass withLayoutType: aLayoutType slots: classSlots [
newMetaclass superclass: superclass withLayoutType: aLayoutType slots: classSlots.
]
{ #category : #initialization }
ShDefaultBuilderEnhancer >> fillBuilder: aBuilder from: aClass [
]
{ #category : #migrating }
ShDefaultBuilderEnhancer >> hasToSkipSlot: aSlot [
^ Class hasSlotNamed: aSlot name
]
{ #category : #initialization }
ShDefaultBuilderEnhancer >> initializeBuilder: aBuilder [
aBuilder addChangeComparer: ShSharedPoolChangeDetector.
aBuilder addChangeComparer: ShSharedVariablesChangeDetector.
aBuilder addChangeComparer: ShSlotChangeDetector.
aBuilder addChangeComparer: ShLayoutChangeDetector.
aBuilder addChangeComparer: ShBitLayoutChangeDetector.
aBuilder addChangeComparer: ShClassSlotChangeDetector.
aBuilder addChangeComparer: ShSuperclassChangedDetector.
aBuilder addChangeComparer: ShMetaclassChangeDetector.
]
{ #category : #events }
ShDefaultBuilderEnhancer >> metaclassCreated: builder [
]
{ #category : #'class modifications' }
ShDefaultBuilderEnhancer >> newMetaclass: builder [
^ builder metaclassClass new
]
{ #category : #'class modifications' }
ShDefaultBuilderEnhancer >> on: newClass declareClassVariables: sharedVariables sharing: sharedPoolsString [
newClass
declareClassVariables: sharedVariables;
sharing: sharedPoolsString
]
{ #category : #'class modifications' }
ShDefaultBuilderEnhancer >> propagateChangesToRelatedClasses: newClass installer: installer [
newClass subclasses do: [ :e | installer remake: e ].
]