Introduce KClass.members, make properties/extensionProperties extensions

To avoid significant growth of KClass and KPackage interfaces
This commit is contained in:
Alexander Udalov
2015-07-08 03:13:40 +03:00
parent 2492977274
commit 50dbda1e1a
19 changed files with 80 additions and 54 deletions
+3 -7
View File
@@ -39,12 +39,8 @@ public interface KClass<T> : KDeclarationContainer {
public val qualifiedName: String?
/**
* Returns non-extension properties declared in this class and all of its superclasses.
* All elements accessible in this class, including functions and properties
* declared in this class and all of its superclasses.
*/
public val properties: Collection<KProperty1<T, *>>
/**
* Returns extension properties declared in this class and all of its superclasses.
*/
public val extensionProperties: Collection<KProperty2<T, *, *>>
public val members: Collection<KCallable<*>>
}