@@ -85,16 +85,6 @@ inline val KClass<*>.defaultType: KType
85
85
get() = this .defaultType
86
86
87
87
88
- /* *
89
- * Returns all functions and properties declared in this class.
90
- * Does not include members declared in supertypes.
91
- */
92
- @SinceKotlin(" 1.1" )
93
- @kotlin.internal.LowPriorityInOverloadResolution
94
- @Deprecated(" Use 'declaredMembers' from kotlin.reflect.full package" , ReplaceWith (" this.declaredMembers" , " kotlin.reflect.full.declaredMembers" ), level = DeprecationLevel .ERROR )
95
- inline val KClass <* >.declaredMembers: Collection <KCallable <* >>
96
- get() = this .declaredMembers
97
-
98
88
/* *
99
89
* Returns all functions declared in this class, including all non-static methods declared in the class
100
90
* and the superclasses, as well as static methods declared in the class.
@@ -194,92 +184,3 @@ inline val <T : Any> KClass<T>.declaredMemberProperties: Collection<KProperty1<T
194
184
@Deprecated(" Use 'declaredMemberExtensionProperties' from kotlin.reflect.full package" , ReplaceWith (" this.declaredMemberExtensionProperties" , " kotlin.reflect.full.declaredMemberExtensionProperties" ), level = DeprecationLevel .WARNING )
195
185
inline val <T : Any > KClass <T >.declaredMemberExtensionProperties: Collection <KProperty2 <T , * , * >>
196
186
get() = this .declaredMemberExtensionProperties
197
-
198
-
199
- /* *
200
- * Immediate superclasses of this class, in the order they are listed in the source code.
201
- * Includes superclasses and superinterfaces of the class, but does not include the class itself.
202
- */
203
- @SinceKotlin(" 1.1" )
204
- @kotlin.internal.LowPriorityInOverloadResolution
205
- @Deprecated(" Use 'superclasses' from kotlin.reflect.full package" , ReplaceWith (" this.superclasses" , " kotlin.reflect.full.superclasses" ), level = DeprecationLevel .ERROR )
206
- inline val KClass <* >.superclasses: List <KClass <* >>
207
- get() = this .superclasses
208
-
209
- /* *
210
- * All supertypes of this class, including indirect ones, in no particular order.
211
- * There is not more than one type in the returned collection that has any given classifier.
212
- */
213
- @SinceKotlin(" 1.1" )
214
- @kotlin.internal.LowPriorityInOverloadResolution
215
- @Deprecated(" Use 'allSupertypes' from kotlin.reflect.full package" , ReplaceWith (" this.allSupertypes" , " kotlin.reflect.full.allSupertypes" ), level = DeprecationLevel .ERROR )
216
- inline val KClass <* >.allSupertypes: Collection <KType >
217
- get() = this .allSupertypes
218
- /* *
219
- * All superclasses of this class, including indirect ones, in no particular order.
220
- * Includes superclasses and superinterfaces of the class, but does not include the class itself.
221
- * The returned collection does not contain more than one instance of any given class.
222
- */
223
- @SinceKotlin(" 1.1" )
224
- @kotlin.internal.LowPriorityInOverloadResolution
225
- @Deprecated(" Use 'allSuperclasses' from kotlin.reflect.full package" , ReplaceWith (" this.allSuperclasses" , " kotlin.reflect.full.allSuperclasses" ), level = DeprecationLevel .ERROR )
226
- inline val KClass <* >.allSuperclasses: Collection <KClass <* >>
227
- get() = this .allSuperclasses
228
- /* *
229
- * Returns `true` if `this` class is the same or is a (possibly indirect) subclass of [base], `false` otherwise.
230
- */
231
- @SinceKotlin(" 1.1" )
232
- @kotlin.internal.LowPriorityInOverloadResolution
233
- @Deprecated(" Use 'isSubclassOf' from kotlin.reflect.full package" , ReplaceWith (" this.isSubclassOf(base)" , " kotlin.reflect.full.isSubclassOf" ), level = DeprecationLevel .ERROR )
234
- inline fun KClass <* >.isSubclassOf (base : KClass <* >): Boolean =
235
- this .isSubclassOf(base)
236
-
237
- /* *
238
- * Returns `true` if `this` class is the same or is a (possibly indirect) superclass of [derived], `false` otherwise.
239
- */
240
- @SinceKotlin(" 1.1" )
241
- @kotlin.internal.LowPriorityInOverloadResolution
242
- @Deprecated(" Use 'isSuperclassOf' from kotlin.reflect.full package" , ReplaceWith (" this.isSuperclassOf(derived)" , " kotlin.reflect.full.isSuperclassOf" ), level = DeprecationLevel .ERROR )
243
- inline fun KClass <* >.isSuperclassOf (derived : KClass <* >): Boolean =
244
- this .isSuperclassOf(derived)
245
-
246
-
247
- /* *
248
- * Casts the given [value] to the class represented by this [KClass] object.
249
- * Throws an exception if the value is `null` or if it is not an instance of this class.
250
- *
251
- * @see [KClass.isInstance]
252
- * @see [KClass.safeCast]
253
- */
254
- @SinceKotlin(" 1.1" )
255
- @kotlin.internal.LowPriorityInOverloadResolution
256
- @Deprecated(" Use 'cast' from kotlin.reflect.full package" , ReplaceWith (" this.cast(value)" , " kotlin.reflect.full.cast" ), level = DeprecationLevel .ERROR )
257
- inline fun <T : Any > KClass<T>.cast (value : Any? ): T {
258
- return this .cast(value)
259
- }
260
-
261
- /* *
262
- * Casts the given [value] to the class represented by this [KClass] object.
263
- * Returns `null` if the value is `null` or if it is not an instance of this class.
264
- *
265
- * @see [KClass.isInstance]
266
- * @see [KClass.cast]
267
- */
268
- @SinceKotlin(" 1.1" )
269
- @kotlin.internal.LowPriorityInOverloadResolution
270
- @Deprecated(" Use 'safeCast' from kotlin.reflect.full package" , ReplaceWith (" this.safeCast(value)" , " kotlin.reflect.full.safeCast" ), level = DeprecationLevel .ERROR )
271
- inline fun <T : Any > KClass<T>.safeCast (value : Any? ): T ? {
272
- return this .safeCast(value)
273
- }
274
-
275
-
276
- /* *
277
- * Creates a new instance of the class, calling a constructor which either has no parameters or all parameters of which are optional
278
- * (see [KParameter.isOptional]). If there are no or many such constructors, an exception is thrown.
279
- */
280
- @SinceKotlin(" 1.1" )
281
- @kotlin.internal.LowPriorityInOverloadResolution
282
- @Deprecated(" Use 'createInstance' from kotlin.reflect.full package" , ReplaceWith (" this.createInstance()" , " kotlin.reflect.full.createInstance" ), level = DeprecationLevel .ERROR )
283
- inline fun <T : Any > KClass<T>.createInstance (): T {
284
- return this .createInstance()
285
- }
0 commit comments