1.1.5 AbstractNamespace: namespace hierarchy
- addSubspace: aSymbol
- Create a namespace named aSymbol, add it to the receiver's
subspaces, and answer it.
- allSubassociationsDo: aBlock
- Invokes aBlock once for every association in each of the receiver's
subspaces.
- allSubspaces
- Answer the direct and indirect subspaces of the receiver in a Set
- allSubspacesDo: aBlock
- Invokes aBlock for all subspaces, both direct and indirect.
- allSuperspacesDo: aBlock
- Evaluate aBlock once for each of the receiver's superspaces
- includesClassNamed: aString
- Answer whether the receiver or any of its superspaces include the
given class – note that this method (unlike #includesKey:) does not
require aString to be interned and (unlike #includesGlobalNamed:) only
returns true if the global is a class object.
- includesGlobalNamed: aString
- Answer whether the receiver or any of its superspaces include the
given key – note that this method (unlike #includesKey:) does not
require aString to be interned but (unlike #includesClassNamed:)
returns true even if the global is not a class object.
- removeSubspace: aSymbol
- Remove my subspace named aSymbol from the hierarchy.
- selectSubspaces: aBlock
- Return a Set of subspaces of the receiver satisfying aBlock.
- selectSuperspaces: aBlock
- Return a Set of superspaces of the receiver satisfying aBlock.
- siblings
- Answer all the other children of the same namespace as the receiver.
- siblingsDo: aBlock
- Evaluate aBlock once for each of the other root namespaces,
passing the namespace as a parameter.
- subspaces
- Answer the receiver's direct subspaces
- subspacesDo: aBlock
- Invokes aBlock for all direct subspaces.
- superspace
- Answer the receiver's superspace.
- superspace: aNamespace
- Set the superspace of the receiver to be 'aNamespace'. Also
adds the receiver as a subspace of it.
- withAllSubspaces
- Answer a Set containing the receiver together with its direct and
indirect subspaces
- withAllSubspacesDo: aBlock
- Invokes aBlock for the receiver and all subclasses, both direct
and indirect.