Next: , Previous: , Up: AbstractNamespace   [Index]


1.1.2 AbstractNamespace: accessing

allAssociations

Answer a Dictionary with all of the associations in the receiver and each of its superspaces (duplicate keys are associated to the associations that are deeper in the namespace hierarchy)

allBehaviorsDo: aBlock

Evaluate aBlock once for each class and metaclass in the namespace.

allClassObjectsDo: aBlock

Evaluate aBlock once for each class and metaclass in the namespace.

allClassesDo: aBlock

Evaluate aBlock once for each class in the namespace.

allMetaclassesDo: aBlock

Evaluate aBlock once for each metaclass in the namespace.

classAt: aKey

Answer the value corrisponding to aKey if it is a class. Fail if either aKey is not found or it is associated to something different from a class.

classAt: aKey ifAbsent: aBlock

Answer the value corrisponding to aKey if it is a class. Evaluate aBlock and answer its result if either aKey is not found or it is associated to something different from a class.