kotlinpoet / com.squareup.kotlinpoet / ArrayTypeName

ArrayTypeName

class ArrayTypeName : TypeName

Properties

componentType val componentType: TypeName

Inherited Properties

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

Functions

annotated fun annotated(annotations: List<AnnotationSpec>): ArrayTypeName
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

of fun of(componentType: TypeName): ArrayTypeName
fun of(componentType: Type): ArrayTypeName
fun of(componentType: KClass<*>): TypeName

Returns an array type whose elements are all instances of componentType.