Next: , Up: Behavior   [Index]


1.9.1 Behavior: accessing class hierarchy

allSubclasses

Answer the direct and indirect subclasses of the receiver in a Set

allSuperclasses

Answer all the receiver’s superclasses in a collection

subclasses

Answer the direct subclasses of the receiver in a Set

superclass

Answer the receiver’s superclass (if any, otherwise answer nil)

withAllSubclasses

Answer a Set containing the receiver together with its direct and indirect subclasses

withAllSuperclasses

Answer the receiver and all of its superclasses in a collection