kotlinpoet / com.squareup.kotlinpoet / TypeVariableName

TypeVariableName

class TypeVariableName : TypeName

Properties

bounds val bounds: List<TypeName>
name val name: String

Inherited Properties

annotations val annotations: List<AnnotationSpec>
isAnnotated val isAnnotated: Boolean

Functions

annotated fun annotated(annotations: List<AnnotationSpec>): TypeVariableName
withBounds fun withBounds(vararg bounds: Type): TypeVariableName
fun withBounds(vararg bounds: KClass<*>): TypeVariableName
fun withBounds(vararg bounds: TypeName): TypeVariableName
fun withBounds(bounds: List<TypeName>): TypeVariableName
withoutAnnotations fun withoutAnnotations(): TypeName

Inherited Functions

annotated fun annotated(vararg annotations: AnnotationSpec): TypeName
equals open fun equals(other: Any?): Boolean
hashCode open fun hashCode(): Int
toString open fun toString(): String

Companion Object Functions

get fun get(name: String): TypeVariableName

Returns type variable named name without bounds.

fun get(name: String, vararg bounds: TypeName): TypeVariableName
fun get(name: String, vararg bounds: KClass<*>): TypeVariableName
fun get(name: String, vararg bounds: Type): TypeVariableName

Returns type variable named name with bounds.

fun get(mirror: TypeVariable): TypeVariableName

Returns type variable equivalent to mirror.

fun get(element: TypeParameterElement): TypeVariableName

Returns type variable equivalent to element.