ParameterSpec

class ParameterSpec : Taggable

A generated parameter declaration.

Constructors

Link copied to clipboard
fun ParameterSpec(    name: String,     type: TypeName,     vararg modifiers: KModifier)
Link copied to clipboard
fun ParameterSpec(    name: String,     type: TypeName,     modifiers: Iterable<KModifier>)

Types

Link copied to clipboard
class Builder : Taggable.Builder<ParameterSpec.Builder>
Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override 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.

open override 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.

Link copied to clipboard
fun toBuilder(name: String = this.name, type: TypeName = this.type): ParameterSpec.Builder
Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard
val annotations: List<AnnotationSpec>
Link copied to clipboard
val defaultValue: CodeBlock?
Link copied to clipboard
val kdoc: CodeBlock
Link copied to clipboard
val modifiers: Set<KModifier>
Link copied to clipboard
val name: String
Link copied to clipboard
open override val tags: Map<KClass<*>, Any>

Returns all tags.

Link copied to clipboard
val type: TypeName