ParameterizedTypeName

class ParameterizedTypeName : TypeName

Types

Companion
Link copied to clipboard
object Companion

Functions

copy
Link copied to clipboard
fun copy(nullable: Boolean = this.isNullable, annotations: List<AnnotationSpec> = this.annotations.toList()): TypeName
open override fun copy(nullable: Boolean, annotations: List<AnnotationSpec>, tags: Map<KClass<*>, Any>): ParameterizedTypeName
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
nestedClass
Link copied to clipboard
fun nestedClass(name: String, typeArguments: List<TypeName>): ParameterizedTypeName
Returns a new ParameterizedTypeName instance for the specified name as nested inside this class, with the specified typeArguments.
plusParameter
Link copied to clipboard
fun plusParameter(typeArgument: TypeName): ParameterizedTypeName
fun plusParameter(typeArgument: Class<*>): ParameterizedTypeName
fun plusParameter(typeArgument: KClass<*>): ParameterizedTypeName
tag
Link copied to clipboard
open override fun <T : Any> tag(type: Class<T>): T?
Returns the tag attached with type as a key, or null if no tag is attached with that key.
open override fun <T : Any> tag(type: KClass<T>): T?
Returns the tag attached with type as a key, or null if no tag is attached with that key.
toString
Link copied to clipboard
open override fun toString(): String

Properties

annotations
Link copied to clipboard
val annotations: List<AnnotationSpec>
isAnnotated
Link copied to clipboard
val isAnnotated: Boolean
isNullable
Link copied to clipboard
val isNullable: Boolean
rawType
Link copied to clipboard
val rawType: ClassName
tags
Link copied to clipboard
open override val tags: Map<KClass<*>, Any>
Returns all tags.
typeArguments
Link copied to clipboard
val typeArguments: List<TypeName>