interface Taggable
A type that can be tagged with extra metadata of the user's choice.
interface Builder<out T : Taggable.Builder<T>>
The builder analogue to Taggable types. |
open fun <T : Any> tag(type: Class<T>): T?abstract fun <T : Any> tag(type: KClass<T>): T?
Returns the tag attached with type as a key, or null if no tag is attached with that key. |
fun <T : Any> Taggable.tag(): T?
Returns the tag attached with T as a key, or null if no tag is attached with that key. |
class AnnotationSpec : Taggable
A generated annotation on a declaration. |
|
class FileSpec : Taggable
A Kotlin file containing top level objects like classes, objects, functions, properties, and type aliases. |
|
class FunSpec : Taggable, OriginatingElementsHolder
A generated function declaration. |
|
class ParameterSpec : Taggable
A generated parameter declaration. |
|
class PropertySpec : Taggable, OriginatingElementsHolder
A generated property declaration. |
|
class TypeAliasSpec : Taggable
A generated typealias declaration |
|
class TypeSpec : Taggable, OriginatingElementsHolder
A generated class, interface, or enum declaration. |