@JvmOverloads fun import(type: String, isStatic: Boolean = false, isImplicit: Boolean = false): Unit (source)
Imports all types that are directly underneath the given type using
a wildcard import.
Since
1.0.0
@JvmOverloads fun import(type: IJvmType, forceMode: JavaImportForceMode? = null, isImplicit: Boolean = false): Unit? (source)
Imports the given type.
When no import mode is forced (= forceMode is null), the import may
be a wildcard import depending on the configuration.
isImplicit - whether or not the import is implicit (implicit
imports are not printed)
Since
1.0.0
@JvmOverloads fun import(type: IJvmType, member: String, forceMode: JavaImportForceMode? = null, isImplicit: Boolean = false): Unit? (source)
Statically imports the given member type.
This should be used for methods and fields only.
When no import mode is forced (= forceMode is null), the import may
be a wildcard import depending on the configuration.
isImplicit - whether or not the import is implicit (implicit
imports are not printed)
Since
1.0.0