← Docs
kotlin-stdlib / kotlin.reflect / KCallable / name

name

Common
JVM
JS
Native
1.0
abstract val name : String
(Common source) (JVM source) (JS source) (Native source)

The name of this callable as it was declared in the source code. If the callable has no name, a special invented name is created. Nameless callables include:

  • constructors have the name "",
  • property accessors: the getter for a property named "foo" will have the name "<get-foo>", the setter, similarly, will have the name "<set-foo>".
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 .