JvmName

@Target(allowedTargets = [AnnotationTarget.FILE, AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER])
expect annotation class JvmName(val name: String)(source)

Specifies the name for the Java class or method which is generated from this element.

See the Kotlin language documentation for more information.

Since Kotlin

1.2
@Target(allowedTargets = [AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER, AnnotationTarget.FILE])
actual annotation class JvmName(val name: String)(source)

Specifies the name for the Java class or method which is generated from this element.

See the Kotlin language documentation for more information.

Since Kotlin

1.0

Properties

Link copied to clipboard
expect val name: String

the name of the element.

Since Kotlin 1.2
actual val name: String

the name of the element.

Since Kotlin 1.0