OCLOperators superTypes
Created by Peter on 2019-12-19 · Last edited by Sandra.akech on 2026-01-27.
Returns a set of all the direct supertypes of the type.
ReturnType:
Collection(System.String)
Example:
Mango.superTypes
Returns
['Fruit']
It's like asking, "Who are my parents?" for any class you have.
The superTypes operator only returns the first level of inheritance (direct parents), not the complete inheritance hierarchy. For all ancestors, use allSuperTypes instead.
