Package-level declarations

Types

Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.CLASS])
annotation class AddTargetProperty(val name: String, val pkg: String = "", val className: String)

Annotation to declare additional property that will add to generated target class

Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.CLASS])
annotation class AutoMapper(val target: KClass<*>, val defaults: Array<Default> = [], val imports: Array<String> = [], val exclude: String = [])

Annotation to automatically generate a mapper for the specified target class.

Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.CLASS])
annotation class Default(val target: String = "", val code: String = "")

Annotation used with @Mapping to specify default values for properties during the mapping process.

Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.CLASS])
annotation class GenerateTarget(val pkg: String = "", val name: String, val props: Array<AddTargetProperty> = [])

Annotation to automatically generate class with same properties as source class

Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.PROPERTY])
annotation class GenerateTargetPropertyType(val pkg: String = "", val className: String)

Annotation to set property type in generated target class

Link copied to clipboard
annotation class Mapping(val target: String = "", val transform: String = "", val code: String = "")

Annotation used with @AutoMapper for mapping properties configuration.

Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.PROPERTY])
annotation class TargetPropertyExclude

Annotation use with @GenerateTarget that mark property in source class that shouldn't add to target class