arrow.generic.AnnotatedDomain.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of arrow-meta Show documentation
Show all versions of arrow-meta Show documentation
Functional companion to Kotlin's Standard Library
package arrow.generic
import arrow.common.utils.ClassOrPackageDataWrapper
import arrow.common.utils.fullName
import me.eugeniomarletti.kotlin.metadata.escapedClassName
import javax.lang.model.element.TypeElement
data class AnnotatedGeneric(val type: TypeElement, val classData: ClassOrPackageDataWrapper.Class, val targets: List) {
val sourceClassName = classData.fullName.escapedClassName
val sourceSimpleName = type.simpleName.toString()
val sourceName = type.simpleName.toString().decapitalize()
val targetNames = targets.map(Target::fullName)
val hasTupleFocus: Boolean = targets.size > 1
val focusSize: Int = targets.size
}
data class Target(val fullName: String, val paramName: String)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy