← Docs
kotlin-stdlib / kotlin.reflect.full / companionObjectInstance

companionObjectInstance

JVM
1.1
val KClass < * > . companionObjectInstance : Any ?
(source)

Returns an instance of the companion object of a given class, or null if the class doesn't have a companion object.

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 .