enclosingCanonicalNames

fun Class<*>.enclosingCanonicalNames(includeSelf: Boolean = false): Sequence<String>(source)

Provides a sequence of the canonical names of all enclosing classes of this Class.

Return

A Sequence of the canonical names of all enclosing classes.

Parameters

includeSelf

Determines whether to include the canonical name of the current class in the returned sequence.