FileData

data class FileData(declarationContainer: ImmutableKmPackage, annotations: Collection<AnnotationSpec>, properties: Map<ImmutableKmProperty, PropertyData>, methods: Map<ImmutableKmFunction, MethodData>, className: ClassName, jvmName: String?) : ContainerData

Represents relevant information on a file facade used for ClassInspector.

Constructors

FileData
Link copied to clipboard
fun FileData(declarationContainer: ImmutableKmPackage, annotations: Collection<AnnotationSpec>, properties: Map<ImmutableKmProperty, PropertyData>, methods: Map<ImmutableKmFunction, MethodData>, className: ClassName, jvmName: String? = if (!className.simpleName.endsWith("Kt")) className.simpleName else null)

Functions

component1
Link copied to clipboard
operator fun component1(): ImmutableKmPackage
component2
Link copied to clipboard
operator fun component2(): Collection<AnnotationSpec>
component3
Link copied to clipboard
operator fun component3(): Map<ImmutableKmProperty, PropertyData>
component4
Link copied to clipboard
operator fun component4(): Map<ImmutableKmFunction, MethodData>
component5
Link copied to clipboard
operator fun component5(): ClassName
component6
Link copied to clipboard
operator fun component6(): String?
copy
Link copied to clipboard
fun copy(declarationContainer: ImmutableKmPackage, annotations: Collection<AnnotationSpec>, properties: Map<ImmutableKmProperty, PropertyData>, methods: Map<ImmutableKmFunction, MethodData>, className: ClassName, jvmName: String? = if (!className.simpleName.endsWith("Kt")) className.simpleName else null): FileData
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
toString
Link copied to clipboard
open override fun toString(): String

Properties

annotations
Link copied to clipboard
open override val annotations: Collection<AnnotationSpec>
declared annotations on this class.
className
Link copied to clipboard
val className: ClassName
the KotlinPoet ClassName of the underlying facade class in JVM.
declarationContainer
Link copied to clipboard
open override val declarationContainer: ImmutableKmPackage
the ImmutableKmClass as parsed from the class's @Metadata annotation.
fileName
Link copied to clipboard
val fileName: String
The file name of the container, defaults to className's simple name + "Kt".
jvmName
Link copied to clipboard
val jvmName: String?
the @JvmName of the class or null if it does not have a custom name.
methods
Link copied to clipboard
open override val methods: Map<ImmutableKmFunction, MethodData>
the mapping of declarationContainer's methods to parsed MethodData.
properties
Link copied to clipboard
open override val properties: Map<ImmutableKmProperty, PropertyData>
the mapping of declarationContainer's properties to parsed PropertyData.