← Docs
kotlin-stdlib / kotlin.reflect / KType / classifier

classifier

Common
JVM
JS
Native
1.1
abstract val classifier : KClassifier ?
(Common source) (JVM source) (JS source) (Native source)

The declaration of the classifier used in this type. For example, in the type List<String> the classifier would be the KClass instance for List .

Returns null if this type is not denotable in Kotlin, for example if it is an intersection type.

Stay in touch:
  • Contributing to Kotlin
  • Releases
  • Press Kit
  • Security
  • Blog
  • Issue Tracker
  • Brand assets
  • Careers
Supported and developed by JetBrains .
Kotlin™ is protected under the Kotlin Foundation
and licensed under the Apache 2 license .