All Downloads are FREE. Search and download functionalities are using the official Maven repository.

kotlin.JLangJVM.kt Maven / Gradle / Ivy

There is a newer version: 2.1.0-Beta1
Show newest version
package kotlin

import java.lang.annotation.Retention
import java.lang.annotation.RetentionPolicy
import kotlin.jvm.internal.Intrinsic

/**
 * This annotation indicates what exceptions should be declared by a function when compiled to a JVM method
 *
 * Example:
 *
 *      throws(javaClass())
 *      fun readFile(name: String): String {...}
 *
 * will be translated to
 *
 *      String readFile(String name) throws IOException {...}
 */
Retention(RetentionPolicy.SOURCE)
public annotation class throws(vararg val exceptionClasses: Class)

[Intrinsic("kotlin.javaClass.property")] public val  T.javaClass : Class
    get() = (this as java.lang.Object).getClass() as Class

[Intrinsic("kotlin.javaClass.function")] fun  javaClass() : Class = null as Class

Retention(RetentionPolicy.SOURCE)
public annotation class volatile

[Intrinsic("kotlin.synchronized")] public fun  synchronized(lock: Any, block: () -> R): R = block()

public fun  T.annotationType() : Class =
    (this as java.lang.annotation.Annotation).annotationType() as Class




© 2015 - 2024 Weber Informatics LLC | Privacy Policy