com.github.themrmilchmann.kraton.lang.java / JavaScope / import

import

@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.

Parameters

type -

isStatic -

isImplicit -

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.

Parameters

type - the type to import

forceMode - the

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.

Parameters

type - the type to import

member - the member to import

forceMode - the

isImplicit - whether or not the import is implicit (implicit imports are not printed)

Since
1.0.0