ClassData

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

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

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

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 class.
constructors
Link copied to clipboard
val constructors: Map<ImmutableKmConstructor, ConstructorData>
the mapping of declarationContainer's constructors to parsed ConstructorData.
declarationContainer
Link copied to clipboard
open override val declarationContainer: ImmutableKmClass
the ImmutableKmClass as parsed from the class's @Metadata annotation.
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.