com.github.themrmilchmann.kraton.lang.jvm / java.lang.Class / asType

asType

val Class<*>.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 Class<*>.asType(vararg typeParameters: IJvmType, nullable: Boolean = false): IJvmType (source)

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

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