com.github.themrmilchmann.kraton.lang.jvm / kotlin.reflect.KClass / asType

asType

val KClass<*>.asType: IJvmType (source)

Creates and returns a new IJvmType which holds a reference to the receiver type of this property.

This should be used with care. Types that are visible for the templates may not be available for the generated output and vice-versa.

Receiver
the type to create a reference to

Since
1.0.0

@JvmOverloads fun KClass<*>.asType(vararg typeParameters: IJvmType, nullable: Boolean = false): IJvmType (source)

Creates and returns a new IJvmType which holds a reference to the receiver type.

This should be used with care. Types that are visible for the templates may not be available for the generated output and vice-versa.

Parameters

typeParameters - the type-parameters for the type

nullable - whether or not the referenced type is nullable

Receiver
the type to create a reference to

Return
the newly created IJvmType

Since
1.0.0