Reflective Class Inspector
Types
Functions
container Data
Link copied to clipboard
open override fun containerData(declarationContainer: KmDeclarationContainer, className: ClassName, parentClassName: ClassName?): ContainerData
Content copied to clipboard
Creates a new ContainerData instance for a given declarationContainer.
declaration Container For
Link copied to clipboard
open override fun declarationContainerFor(className: ClassName): KmDeclarationContainer
Content copied to clipboard
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.
enum Entry
Link copied to clipboard
open override fun enumEntry(enumClassName: ClassName, memberName: String): EnumEntryData
Content copied to clipboard
Looks up the enum entry on a given enum given its member name.
is Interface
Link copied to clipboard
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.
method Exists
Link copied to clipboard
open override fun methodExists(className: ClassName, methodSignature: JvmMethodSignature): Boolean
Content copied to clipboard
Looks up if a given methodSignature within className exists.
Properties
supportsNonRuntimeRetainedAnnotations
Link copied to clipboard
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.