import
Registers a Java class to be imported in generated scripts, by its canonical name, so a nested class is imported as Outer.Inner. Java callers use addImport, since import is a Java keyword.
Parameters
clazz
the class to add to the import list
Type Parameters
T
the type of the class to import
Throws
if clazz cannot be imported: it has no canonical name (a local, anonymous or hidden class, or an array of one), which Java source cannot name, or it is a primitive type, an array class, or a class in the unnamed package, none of which a Java import declaration can name