kotlinpoet / com.squareup.kotlinpoet / ParameterSpec

ParameterSpec

class ParameterSpec

A generated parameter declaration.

Types

Builder

class Builder

Properties

annotations

val annotations: List<AnnotationSpec>

defaultValue

val defaultValue: CodeBlock?

modifiers

val modifiers: Set<KModifier>

name

val name: String

type

val type: TypeName

Functions

equals

fun equals(other: Any?): Boolean

hashCode

fun hashCode(): Int

toBuilder

fun toBuilder(name: String = this.name, type: TypeName = this.type): Builder

toString

fun toString(): String

Companion Object Functions

builder

fun builder(name: String, type: TypeName, vararg modifiers: KModifier): Builder
fun builder(name: String, type: Type, vararg modifiers: KModifier): Builder
fun builder(name: String, type: KClass<*>, vararg modifiers: KModifier): Builder

get

fun get(element: VariableElement): ParameterSpec

parametersOf

fun parametersOf(method: ExecutableElement): List<ParameterSpec>