KClass
Represents a class and provides introspection capabilities. Instances of this class are obtainable by the ::class
syntax. See the Kotlin language documentation for more information.
Since Kotlin
1.0Parameters
the type of the class.
Represents a class and provides introspection capabilities. Instances of this class are obtainable by the ::class
syntax. See the Kotlin language documentation for more information.
Since Kotlin
1.0Parameters
the type of the class.
Properties
Annotations which are present on this element.
All constructors declared in this class.
All functions and properties accessible in this class, including those declared in this class and all of its superclasses. Does not include constructors.
All classes declared inside this class. This includes both inner and static nested classes.
The instance of the object declaration, or null
if this class is not an object declaration.
The fully qualified dot-separated name of the class, or null
if the class is local or a class of an anonymous object.
The simple name of the class as it was declared in the source code, or null
if the class has no name (if, for example, it is a class of an anonymous object).