Package-level declarations

Properties

Link copied to clipboard

The KAPT option giving the directory of the generated Kotlin sources.

Functions

Link copied to clipboard

The explicit value of an annotation argument.

Link copied to clipboard

The element of a declared type.

Link copied to clipboard

The value of a boolean annotation argument (false if not set).

Link copied to clipboard

The classes of a KClass (or array of KClass) annotation argument.

Link copied to clipboard

The annotation of the element with the specified qualified name, null if there is no such annotation.

Link copied to clipboard
fun ProcessingEnvironment.isSubtypeOf(kotlinQualifiedName: String?, javaQualifiedName: String): Boolean

True if the Kotlin class is a subtype of the Java class.

Link copied to clipboard
fun TypeElement.kmClass(): KmClass?

The Kotlin metadata of the class, null if the element is not a Kotlin class.

Link copied to clipboard
fun TypeElement.kotlinClassName(): ClassName

The Kotlin class name (from its metadata - or from the element).

Link copied to clipboard
fun KmType.qualifiedClassName(): String?

The qualified name of the (expanded) class of the type, null if the type is not a class.

Link copied to clipboard

The value of a String annotation argument (null if not set).

Link copied to clipboard

The superclass of this class, null if the superclass is Object.

Link copied to clipboard
fun String.toClassName(): ClassName

Converts a Kotlin metadata class name (org/litote/Outer.Inner) to a KotlinPoet ClassName.

Link copied to clipboard
fun KmType.toTypeName(): TypeName

Converts a Kotlin metadata type to a KotlinPoet TypeName.

Link copied to clipboard

The Java element of a Kotlin class (the Kotlin collection types are mapped to the Java types).

Link copied to clipboard

Writes a generated Kotlin file: in the KAPT generated Kotlin sources directory (compiled by KAPT), or with the javax.annotation.processing.Filer if the processor is not run by KAPT.