From 2ee38ee54edae43b9e3b4b557b42214a3a1c1277 Mon Sep 17 00:00:00 2001 From: fankesyooni Date: Sun, 1 Oct 2023 01:00:20 +0800 Subject: [PATCH] docs: update api docs --- .../yukihookapi/hook/bean/GenericClass.md | 16 +++++++++++++--- .../yukihookapi/hook/bean/GenericClass.md | 16 +++++++++++++--- 2 files changed, 26 insertions(+), 6 deletions(-) diff --git a/docs-source/src/en/api/public/com/highcapable/yukihookapi/hook/bean/GenericClass.md b/docs-source/src/en/api/public/com/highcapable/yukihookapi/hook/bean/GenericClass.md index 976553ce..d0474b6f 100644 --- a/docs-source/src/en/api/public/com/highcapable/yukihookapi/hook/bean/GenericClass.md +++ b/docs-source/src/en/api/public/com/highcapable/yukihookapi/hook/bean/GenericClass.md @@ -27,11 +27,11 @@ class GenericClass internal constructor(private val type: ParameterizedType) ## argument - method ```kotlin:no-line-numbers -fun argument(index: Int): Class<*> +fun argument(index: Int): Class<*>? ``` ```kotlin:no-line-numbers -inline fun argument(index: Int): Class +inline fun argument(index: Int): Class? ``` **Change Records** @@ -42,6 +42,16 @@ inline fun argument(index: Int): Class 新增泛型返回值 `Class` 方法 +`v1.2.0` `modified` + +方法的返回值可为 `null` + **Function Illustrate** -> 获得泛型参数数组下标的 `Class` 实例。 \ No newline at end of file +> 获得泛型参数数组下标的 `Class` 实例。 + +::: warning + +在运行时局部变量的泛型会被擦除,获取不到时将会返回 **null**。 + +::: \ No newline at end of file diff --git a/docs-source/src/zh-cn/api/public/com/highcapable/yukihookapi/hook/bean/GenericClass.md b/docs-source/src/zh-cn/api/public/com/highcapable/yukihookapi/hook/bean/GenericClass.md index 8c94e188..e0a00692 100644 --- a/docs-source/src/zh-cn/api/public/com/highcapable/yukihookapi/hook/bean/GenericClass.md +++ b/docs-source/src/zh-cn/api/public/com/highcapable/yukihookapi/hook/bean/GenericClass.md @@ -19,11 +19,11 @@ class GenericClass internal constructor(private val type: ParameterizedType) ## argument - method ```kotlin:no-line-numbers -fun argument(index: Int): Class<*> +fun argument(index: Int): Class<*>? ``` ```kotlin:no-line-numbers -inline fun argument(index: Int): Class +inline fun argument(index: Int): Class? ``` **变更记录** @@ -34,6 +34,16 @@ inline fun argument(index: Int): Class 新增泛型返回值 `Class` 方法 +`v1.2.0` `修改` + +方法的返回值可为 `null` + **功能描述** -> 获得泛型参数数组下标的 `Class` 实例。 \ No newline at end of file +> 获得泛型参数数组下标的 `Class` 实例。 + +::: warning + +在运行时局部变量的泛型会被擦除,获取不到时将会返回 **null**。 + +::: \ No newline at end of file