OCLOperators allSuperTypes
This page was created by Alexandra on 2017-08-13. Last edited by Wikiadmin on 2026-09-12.
The allSuperTypes operator is a meta-model (type) operation that returns a collection of all parent (super) types of a given class. This includes both direct and indirect superclasses in the inheritance hierarchy. It is mainly used for model introspection, allowing you to analyze or validate class inheritance structures rather than instance data.
Meta information on all the super classes – in the inheritance order of the class.
ReturnType:[edit source]
Collection(System.String)
Example:[edit source]

Mango.allSuperTypes
Returns
['SysSuperClass', 'Fruit']
Mango.superTypes
Returns
['Fruit']
