superclassesOf
superclassesOf(u_classObject) =>l_superClasses
Description
Returns the ordered list of all super classes of u_classObject. Each element in the list is a class object.
The list is sorted so that each element of the list is a subclass of the remaining elements.
If a class is inherited from multiple classes,
superclassesOf() traverses the entire inheritance tree and returns the linearized class list.Arguments
Value Returned
|
The list of super classes. If the argument is not a class object, then l_superClasses is |
Examples
defclass(basicA () ())
defclass(basicB () ())
defclass(derived1 (basicA) ())
defclass(derived2 (basicA basicB) ())
superclassesOf(findClass('derived1))
=> (class:derived1 class:basicA class:standardObject class:t)
superclassesOf(findClass('derived2))
=> (class:derived2 class:basicA class:basicB class:standardObject class:t)
Related Topics
subclassp
Return to top