swiftpoet / io.outfoxx.swiftpoet / ParameterSpec

ParameterSpec

class ParameterSpec : AttributedSpec

A generated parameter declaration.

Types

Builder

class Builder

Properties

argumentLabel

val argumentLabel: String?

defaultValue

val defaultValue: CodeBlock?

modifiers

val modifiers: Set<Modifier>

parameterName

val parameterName: String

type

val type: TypeName

variadic

val variadic: Boolean

Functions

equals

fun equals(other: Any?): Boolean

hashCode

fun hashCode(): Int

toBuilder

fun toBuilder(type: TypeName): Builder
fun toBuilder(labelAndName: String, type: TypeName): Builder
fun toBuilder(argumentLabel: String?, parameterName: String, type: TypeName): Builder

toString

fun toString(): String

Companion Object Functions

builder

fun builder(argumentLabel: String, parameterName: String, type: TypeName, vararg modifiers: Modifier): Builder
fun builder(parameterName: String, type: TypeName, vararg modifiers: Modifier): Builder

unnamed

fun unnamed(typeName: TypeName): ParameterSpec