Notice
The English translation of this page has not been completed, you are welcome to contribute translations to us.
You can use the Chrome Translation Plugin to translate entire pages for reference.
- class
GenericClassclass GenericClass internal constructor(private val type: ParameterizedType)
Change Records
v1.0.0
first
Function Illustrate
当前
Class
的泛型父类操作对象。
- method
argumentfun argument(index: Int): Class<*>?
inline fun <reified T> argument(index: Int): Class<T>?
Change Records
v1.0.0
first
v1.0.3
modified
方法的返回值可为 null
Function Illustrate
获得泛型参数数组下标的
Class
实例。
Notice
在运行时局部变量的泛型会被擦除,获取不到时将会返回 null。