The enumeration methods take a Boolean argument that can have the value deep or shallow. The behavior of deep and shallow depends upon the particular method being used, as shown in Table 4–1.
Table 4–1 Deep and Shallow Enumeration
Method |
deep |
shallow |
---|---|---|
enumNameSpace |
Returns the entire hierarchy of namespaces under the enumerated namespace. |
Returns the first-level children of the enumerated namespace. |
enumClass |
Returns all subclasses of the enumerated class, but does not return the class itself. |
Returns the direct subclasses of that class. |
enumInstances |
Returns the class instances and all instances of its subclasses. |
Returns the instances of that class |