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

companionObject

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

Returns a KClass instance representing 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 .