ElementsClassInspector

class ElementsClassInspector : ClassInspector

An Elements-based implementation of ClassInspector.

Types

Companion
Link copied to clipboard
object Companion

Functions

containerData
Link copied to clipboard
open override fun containerData(declarationContainer: KmDeclarationContainer, className: ClassName, parentClassName: ClassName?): ContainerData

Creates a new ContainerData instance for a given declarationContainer.

declarationContainerFor
Link copied to clipboard
open override fun declarationContainerFor(className: ClassName): KmDeclarationContainer

Looks up other declaration containers, such as for nested members. Note that this class would always be Kotlin, so Metadata can be relied on for this.

enumEntry
Link copied to clipboard
open override fun enumEntry(enumClassName: ClassName, memberName: String): EnumEntryData

Looks up the enum entry on a given enum given its member name.

isInterface
Link copied to clipboard
open override fun isInterface(className: ClassName): Boolean

Looks up a class and returns whether or not it is an interface. Note that this class can be Java or Kotlin, so Metadata should not be relied on for this.

methodExists
Link copied to clipboard
open override fun methodExists(className: ClassName, methodSignature: JvmMethodSignature): Boolean

Looks up if a given methodSignature within className exists.

Properties

supportsNonRuntimeRetainedAnnotations
Link copied to clipboard
open override val supportsNonRuntimeRetainedAnnotations: Boolean = true

Indicates if this ClassInspector supports AnnotationRetention.RUNTIME-retained annotations. This is used to indicate if manual inference of certain non-RUNTIME-retained annotations should be done, such as JvmName.