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

com.lemonappdev.konsist.api.provider.KoIsConstructorDefinedProvider.kt Maven / Gradle / Ivy

Go to download

A Kotlin architecture test library. Define and guard code base consistency using Kotlin.

The newest version!
package com.lemonappdev.konsist.api.provider

/**
 * An interface representing a Kotlin declaration that provides information about whether it is
 * defined within a constructor or not.
 */
interface KoIsConstructorDefinedProvider : KoBaseProvider {
    /**
     * Determines whatever declaration is defined in constructor (true) or not (false).
     *
     * e.g.
     * ```
     * val topLevelProperty = "" // isConstructorDefined == false
     *
     * class SampleClass(val constructorProperty: Int) { // isConstructorDefined == true
     *      val bodyProperty = "" // isConstructorDefined == false
     * }
     * ```
     */
    val isConstructorDefined: Boolean
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy