AttributedSpec

open class AttributedSpec(attributes: List<AttributeSpec>, tags: Map<KClass<*>, Any>) : Taggable

Types

Builder
Link copied to clipboard
abstract class Builder<out B : AttributedSpec.Builder<B>> : Taggable.Builder<B>
The builder analogue to AttributedSpec 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

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

Inheritors

AnyTypeSpec
Link copied to clipboard
EnumerationCaseSpec
Link copied to clipboard
FunctionSpec
Link copied to clipboard
ImportSpec
Link copied to clipboard
ParameterSpec
Link copied to clipboard
PropertySpec
Link copied to clipboard