Product Documentation
Cadence SKILL++ Object System Reference
Product Version IC23.1, June 2023

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

u_classObject

A class object.

Value Returned

l_superClasses

The list of super classes. If the argument is not a class object, then l_superClasses is nil.

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

Subclasses and Superclasses

subclassp


Return to top
 ⠀
X