Origin

@Target(allowedTargets = [AnnotationTarget.CLASS])
annotation class Origin(val value: KClass<*>, val context: String = "")(source)

A marker annotation to indicate the origin class of a generated class. This is used by contribution merging in replacements/exclusions, so if a generated contributed binding GeneratedFoo denotes an origin of Foo, excluding or replacing Foo will also exclude GeneratedFoo.

This is safe for other code generators to use but should not be used by user-written code directly.

Properties

Link copied to clipboard

Optional extra context about the origin, such as what generated this class.

Link copied to clipboard
val value: KClass<*>