From 3886136812426e47493e661b422183868a2f714c Mon Sep 17 00:00:00 2001 From: Fankesyooni Date: Tue, 8 Feb 2022 01:33:50 +0800 Subject: [PATCH] ... --- .../com/highcapable/yukihookapi/hook/core/YukiHookCreater.kt | 3 +++ .../yukihookapi/hook/core/finder/ConstructorFinder.kt | 3 +++ .../highcapable/yukihookapi/hook/core/finder/FieldFinder.kt | 3 +++ .../highcapable/yukihookapi/hook/core/finder/MethodFinder.kt | 3 +++ .../com/highcapable/yukihookapi/hook/entity/YukiBaseHooker.kt | 3 ++- 5 files changed, 14 insertions(+), 1 deletion(-) diff --git a/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/core/YukiHookCreater.kt b/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/core/YukiHookCreater.kt index aca75043..f4e2ff58 100644 --- a/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/core/YukiHookCreater.kt +++ b/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/core/YukiHookCreater.kt @@ -68,6 +68,7 @@ class YukiHookCreater(private val packageParam: PackageParam, val hookClass: Cla /** * Hook 执行入口 + * * - 此功能交由方法体自动完成 - 你不应该手动调用此方法 * @throws IllegalStateException 如果必要参数没有被设置 */ @@ -241,6 +242,7 @@ class YukiHookCreater(private val packageParam: PackageParam, val hookClass: Cla /** * Hook 创建入口 + * * - 此功能交由方法体自动完成 - 你不应该手动调用此方法 * @return [Result] */ @@ -249,6 +251,7 @@ class YukiHookCreater(private val packageParam: PackageParam, val hookClass: Cla /** * Hook 执行入口 + * * - 此功能交由方法体自动完成 - 你不应该手动调用此方法 */ @DoNotUseMethod diff --git a/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/core/finder/ConstructorFinder.kt b/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/core/finder/ConstructorFinder.kt index ae27d6ac..273d9695 100644 --- a/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/core/finder/ConstructorFinder.kt +++ b/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/core/finder/ConstructorFinder.kt @@ -51,6 +51,7 @@ class ConstructorFinder(private val hookInstance: YukiHookCreater.MemberHookCrea /** * [Constructor] 参数 + * * - 无参 [Constructor] 不要使用此方法 * * - 有参 [Constructor] 必须使用此方法设定参数 @@ -73,6 +74,7 @@ class ConstructorFinder(private val hookInstance: YukiHookCreater.MemberHookCrea /** * 得到构造方法结果 + * * - 此功能交由方法体自动完成 - 你不应该手动调用此方法 * @return [Result] */ @@ -120,6 +122,7 @@ class ConstructorFinder(private val hookInstance: YukiHookCreater.MemberHookCrea /** * 开始重查找 + * * - 此功能交由方法体自动完成 - 你不应该手动调用此方法 */ @DoNotUseMethod diff --git a/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/core/finder/FieldFinder.kt b/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/core/finder/FieldFinder.kt index 7d86ab76..28ce458d 100644 --- a/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/core/finder/FieldFinder.kt +++ b/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/core/finder/FieldFinder.kt @@ -50,18 +50,21 @@ class FieldFinder(private val hookInstance: YukiHookCreater.MemberHookCreater, p /** * [Field] 名称 + * * - 必须设置 */ var name = "" /** * [Field] 类型 + * * - 必须设置 */ var type: Class<*>? = null /** * 得到变量处理结果 + * * - 此功能交由方法体自动完成 - 你不应该手动调用此方法 * @return [Result] * @throws IllegalStateException 如果 [name] 没有被设置 diff --git a/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/core/finder/MethodFinder.kt b/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/core/finder/MethodFinder.kt index 7e3104c0..c6fe8f84 100644 --- a/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/core/finder/MethodFinder.kt +++ b/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/core/finder/MethodFinder.kt @@ -65,6 +65,7 @@ class MethodFinder(private val hookInstance: YukiHookCreater.MemberHookCreater, /** * [Method] 参数 + * * - 无参 [Method] 不要使用此方法 * * - 有参 [Method] 必须使用此方法设定参数 @@ -88,6 +89,7 @@ class MethodFinder(private val hookInstance: YukiHookCreater.MemberHookCreater, /** * 得到方法结果 + * * - 此功能交由方法体自动完成 - 你不应该手动调用此方法 * @return [Result] */ @@ -138,6 +140,7 @@ class MethodFinder(private val hookInstance: YukiHookCreater.MemberHookCreater, /** * 开始重查找 + * * - 此功能交由方法体自动完成 - 你不应该手动调用此方法 */ @DoNotUseMethod diff --git a/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/entity/YukiBaseHooker.kt b/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/entity/YukiBaseHooker.kt index 0c71300a..70b675b7 100644 --- a/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/entity/YukiBaseHooker.kt +++ b/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/entity/YukiBaseHooker.kt @@ -72,8 +72,9 @@ abstract class YukiBaseHooker : PackageParam() { /** * 赋值并克隆一个 [PackageParam] - * @param packageParam 需要使用的 [PackageParam] + * * - 此方法为私有功能性 API - 你不应该手动调用此方法 + * @param packageParam 需要使用的 [PackageParam] */ @DoNotUseMethod internal fun assignInstance(packageParam: PackageParam) {