ParameterSpec

class ParameterSpec : AttributedSpec

A generated parameter declaration.

Types

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

Functions

equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
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.
toBuilder
Link copied to clipboard
fun toBuilder(type: TypeName): ParameterSpec.Builder
fun toBuilder(labelAndName: String, type: TypeName): ParameterSpec.Builder
fun toBuilder(argumentLabel: String?, parameterName: String, type: TypeName): ParameterSpec.Builder
toString
Link copied to clipboard
open override fun toString(): String

Properties

argumentLabel
Link copied to clipboard
val argumentLabel: String?
attributes
Link copied to clipboard
val attributes: List<AttributeSpec>
defaultValue
Link copied to clipboard
val defaultValue: CodeBlock?
modifiers
Link copied to clipboard
val modifiers: Set<Modifier>
parameterName
Link copied to clipboard
val parameterName: String
tags
Link copied to clipboard
val tags: Map<KClass<*>, Any>
all tags.
type
Link copied to clipboard
val type: TypeName
variadic
Link copied to clipboard
val variadic: Boolean