FileData

data class FileData(val declarationContainer: KmPackage, val annotations: Collection<AnnotationSpec>, val properties: Map<KmProperty, PropertyData>, val methods: Map<KmFunction, MethodData>, val className: ClassName, val jvmName: String? = if (!className.simpleName.endsWith("Kt")) className.simpleName else null) : ContainerData

Represents relevant information on a file facade used for ClassInspector.

Constructors

Link copied to clipboard
constructor(declarationContainer: KmPackage, annotations: Collection<AnnotationSpec>, properties: Map<KmProperty, PropertyData>, methods: Map<KmFunction, MethodData>, className: ClassName, jvmName: String? = if (!className.simpleName.endsWith("Kt")) className.simpleName else null)

Properties

Link copied to clipboard
open override val annotations: Collection<AnnotationSpec>

declared annotations on this class.

Link copied to clipboard
val className: ClassName

the KotlinPoet ClassName of the underlying facade class in JVM.

Link copied to clipboard
open override val declarationContainer: KmPackage

the KmClass as parsed from the class's @Metadata annotation.

Link copied to clipboard

The file name of the container, defaults to className's simple name + "Kt". If a jvmName is specified, it will always defer to that.

Link copied to clipboard

the @JvmName of the class or null if it does not have a custom name. Default will try to infer from the className.

Link copied to clipboard
open override val methods: Map<KmFunction, MethodData>

the mapping of declarationContainer's methods to parsed MethodData.

Link copied to clipboard
open override val properties: Map<KmProperty, PropertyData>

the mapping of declarationContainer's properties to parsed PropertyData.