ClassData

Represents relevant information on a Kotlin class used for ClassInspector. Can only ever be applied on a class and not file facades.

data class ClassData(declarationContainer: ImmutableKmClass, className: ClassName, annotations: Collection<AnnotationSpec>, properties: Map<ImmutableKmProperty, PropertyData>, constructors: Map<ImmutableKmConstructor, ConstructorData>, methods: Map<ImmutableKmFunction, MethodData>) : ContainerData

Constructors

ClassData
Link copied to clipboard
fun ClassData(declarationContainer: ImmutableKmClass, className: ClassName, annotations: Collection<AnnotationSpec>, properties: Map<ImmutableKmProperty, PropertyData>, constructors: Map<ImmutableKmConstructor, ConstructorData>, methods: Map<ImmutableKmFunction, MethodData>)

Functions

component1
Link copied to clipboard
operator fun component1(): ImmutableKmClass
component2
Link copied to clipboard
operator fun component2(): ClassName
component3
Link copied to clipboard
operator fun component3(): Collection<AnnotationSpec>
component4
Link copied to clipboard
operator fun component4(): Map<ImmutableKmProperty, PropertyData>
component5
Link copied to clipboard
operator fun component5(): Map<ImmutableKmConstructor, ConstructorData>
component6
Link copied to clipboard
operator fun component6(): Map<ImmutableKmFunction, MethodData>
copy
Link copied to clipboard
fun copy(declarationContainer: ImmutableKmClass, className: ClassName, annotations: Collection<AnnotationSpec>, properties: Map<ImmutableKmProperty, PropertyData>, constructors: Map<ImmutableKmConstructor, ConstructorData>, methods: Map<ImmutableKmFunction, MethodData>): ClassData
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 class.

val className: ClassName
constructors
Link copied to clipboard

the mapping of declarationContainer's constructors to parsed ConstructorData.

val constructors: Map<ImmutableKmConstructor, ConstructorData>
declarationContainer
Link copied to clipboard

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

open override val declarationContainer: ImmutableKmClass
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>