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(type: TypeName = this.type, name: String = this.name): Builder
toString fun toString(): String

Companion Object Functions

builder fun builder(type: TypeName, name: String, vararg modifiers: KModifier): Builder
fun builder(type: Type, name: String, vararg modifiers: KModifier): Builder
fun builder(type: KClass<*>, name: String, vararg modifiers: KModifier): Builder
get fun get(element: VariableElement): ParameterSpec
parametersOf fun parametersOf(method: ExecutableElement): List<ParameterSpec>