JvmName

Common
1.0
@Target([AnnotationTarget.FILE, AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER]) annotation class JvmName
(source)
JVM
1.0
@Target([AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER, AnnotationTarget.FILE]) annotation class JvmName
(source)

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

See the Kotlin language documentation for more information.

Constructors

Common
JVM
1.0

<init>

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

<init>(name: String)

Properties

Common
JVM
1.0

name

the name of the element.

val name: String

Extension Properties

JVM
1.0

annotationClass

Returns a KClass instance corresponding to the annotation type of this annotation.

val <T : Annotation> T.annotationClass: KClass<out T>