Taggable

abstract class Taggable(tags: Map<KClass<*>, Any>)

A type that can be tagged with extra metadata of the user's choice.

Constructors

Taggable
Link copied to clipboard
fun Taggable(tags: Map<KClass<*>, Any>)

Types

Builder
Link copied to clipboard
abstract class Builder<out B : Taggable.Builder<B>>
The builder analogue to Taggable types.

Functions

tag
Link copied to clipboard
inline fun <T : Any> tag(type: Class<T>): T?
Returns the tag attached with type as a key, or null if no tag is attached with that key.
inline 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.

Properties

tags
Link copied to clipboard
val tags: Map<KClass<*>, Any>
all tags.

Inheritors

AttributeSpec
Link copied to clipboard
AttributedSpec
Link copied to clipboard
ExtensionSpec
Link copied to clipboard
FileMemberSpec
Link copied to clipboard
FileSpec
Link copied to clipboard

Extensions

tag
Link copied to clipboard
inline 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.