setType

abstract fun setType(type: T): N(source)

Sets the type

Return

this

Parameters

type

the type


open fun setType(typeClass: Class<out Any>): N(source)

Sets this type to this class and try to import it to the CompilationUnit if needed

Return

this

Parameters

typeClass

the type


open fun setType(typeString: String): N(source)