com.lemonappdev.konsist.api.provider.KoIsConstructorDefinedProvider.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of konsist Show documentation
Show all versions of konsist Show documentation
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