se.ansman.kotshi.kapt.KmClasses.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of compiler Show documentation
Show all versions of compiler Show documentation
An annotations processor that generates Moshi adapters from Kotlin data classes
The newest version!
package se.ansman.kotshi.kapt
import kotlin.metadata.KmClass
import kotlin.metadata.kind
val KmClass.isClass get() = kind == kotlin.metadata.ClassKind.CLASS
val KmClass.isObject get() = kind == kotlin.metadata.ClassKind.OBJECT
val KmClass.isEnum get() = kind == kotlin.metadata.ClassKind.ENUM_CLASS