Class Reference
Used to create a common type between KtClassOrObject class references and ClassDescriptor references, to streamline parsing.
See also
Inheritors
Types
Link copied to clipboard
class Descriptor(val clazz: ClassDescriptor, val classId: ClassId, val module: AnvilModuleDescriptor) : ClassReference
Link copied to clipboard
class Psi(val clazz: KtClassOrObject, val classId: ClassId, val module: AnvilModuleDescriptor) : ClassReference
Properties
Functions
Link copied to clipboard
fun ClassReference.allSuperTypeClassReferences(includeSelf: Boolean = false): Sequence<ClassReference>
This will return all super types as ClassReference, whether they're parsed as KtClassOrObject or ClassDescriptor. This will include generated code, assuming it has already been generated. The returned sequence will be distinct by FqName, and Psi types are preferred over Descriptors.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Returns only the super types (excluding Any) and implemented interfaces declared directly by this class.
Link copied to clipboard
Link copied to clipboard
Returns all outer classes including this class. Imagine the inner class Outer.Middle.Inner, then the returned list would contain [Outer, Middle, Inner] in that order.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard