addImport

fun <T> addImport(clazz: Class<T>)

Registers a Java class to be imported in generated scripts; the same as import, under a name Java can call.

Parameters

clazz

the class to add to the import list

Type Parameters

T

the type of the class to import

Throws

if clazz has no canonical name