FileData

Represents relevant information on a file facade used for ClassInspector.

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

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?)

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?): 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

declared annotations on this class.

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

the KotlinPoet ClassName of the underlying facade class in JVM.

val className: ClassName
declarationContainer
Link copied to clipboard

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

open override val declarationContainer: ImmutableKmPackage
fileName
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.

val fileName: String
jvmName
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.

val jvmName: String?
methods
Link copied to clipboard

the mapping of declarationContainer's methods to parsed MethodData.

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

the mapping of declarationContainer's properties to parsed PropertyData.

open override val properties: Map<ImmutableKmProperty, PropertyData>