swiftpoet / io.outfoxx.swiftpoet / TypeVariableName

TypeVariableName

class TypeVariableName : TypeName

Types

Bound

class Bound

Properties

bounds

val bounds: List<Bound>

name

val name: String

Functions

withBounds

fun withBounds(vararg bounds: Bound): TypeVariableName
fun withBounds(bounds: List<Bound>): TypeVariableName

Companion Object Functions

bound

fun bound(constraint: Constraint, name: String): Bound
fun bound(constraint: Constraint, typeName: TypeName): Bound
fun bound(type: TypeName): Bound
fun bound(name: String): Bound

invoke

Returns type variable named name with variance and without bounds.

operator fun invoke(name: String): TypeVariableName

Returns type variable named name with variance and bounds.

operator fun invoke(name: String, vararg bounds: Bound): TypeVariableName

typeVariable

fun typeVariable(name: String, bounds: List<Bound>): TypeVariableName
fun typeVariable(name: String, vararg bounds: Bound): TypeVariableName