labels

Represents a computed property for obtaining a set of labels associated with a Kotlin class.

Recursively collects labels from the class hierarchy, including superclass labels, and adds the simple name of the current class to the set of labels.

Interfaces and the Kotlin base class Any are excluded from the labels. The results are cached to improve performance.