0
|
1 |
"{ Package: 'stx:goodies/ring' }"
|
|
2 |
|
|
3 |
"{ NameSpace: Smalltalk }"
|
|
4 |
|
|
5 |
RGDefinition subclass:#RGGlobalDefinition
|
|
6 |
instanceVariableNames:''
|
|
7 |
classVariableNames:''
|
|
8 |
poolDictionaries:''
|
|
9 |
category:'Ring-Core-Kernel'
|
|
10 |
!
|
|
11 |
|
|
12 |
RGGlobalDefinition comment:'An RGGlobalDefinition is an abstract superclass for representing classes, global variables and shared pools
'
|
|
13 |
!
|
|
14 |
|
|
15 |
!RGGlobalDefinition methodsFor:'accessing'!
|
|
16 |
|
|
17 |
parent
|
|
18 |
"Retrieves the namespace in which the receiver is known"
|
|
19 |
|
|
20 |
^self environment
|
|
21 |
! !
|
|
22 |
|
|
23 |
!RGGlobalDefinition methodsFor:'comparing'!
|
|
24 |
|
|
25 |
= aRGGlobalDefinition
|
|
26 |
"This method look for equality of the properties of the receiver"
|
|
27 |
"Verifies the class and the name of the receiver"
|
|
28 |
|
|
29 |
^self class = aRGGlobalDefinition class
|
|
30 |
and:[ self name == aRGGlobalDefinition name ]
|
|
31 |
!
|
|
32 |
|
|
33 |
hash
|
|
34 |
"Hash is re-implemented because #= is re-implemented"
|
|
35 |
|
|
36 |
^self class hash bitXor: (self name hash)
|
|
37 |
! !
|
|
38 |
|