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

org.jetbrains.kotlin.fir.annotations.kt Maven / Gradle / Ivy

There is a newer version: 2.1.0-RC
Show newest version
/*
 * Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
 * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
 */

package org.jetbrains.kotlin.fir

/**
 * [NoMutableState] annotation means that annotated class has no mutable state
 *   and it's safe to use it concurrent environment (e.g. as session component)
 */
@Target(AnnotationTarget.CLASS)
@Retention(AnnotationRetention.SOURCE)
annotation class NoMutableState

/**
 * [ThreadSafeMutableState] annotation means that annotated class has mutable state
 *   and it should carefully implement it for concurrent environment if it will be used
 *   as session component
 */
@Target(AnnotationTarget.CLASS)
@Retention(AnnotationRetention.SOURCE)
annotation class ThreadSafeMutableState

/**
 * All [FirSession]s should be created via FirSessionFactories, so constructors of all [FirSession] inheritors
 * should be marked with this annotation, to avoid accidental creating session without factory
 */
@RequiresOptIn
annotation class PrivateSessionConstructor

/**
 * [SessionConfiguration] is used to avoid accidental registration of session components after
 *   session was initialized
 */
@RequiresOptIn
annotation class SessionConfiguration





© 2015 - 2024 Weber Informatics LLC | Privacy Policy