import{_ as s,o,c as e,a}from"./app-BpUB8-Q8.js";const n={},l=a(`
Notice
Due to maintenance costs, the YukiHookAPI
will no longer update this document from version 1.3.0
and switch to the API document automatically generated by the Dokka plugin in version 2.0.0
.
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 VariousClass(private vararg val name: String)
Change Records
v1.0
first
v1.1.5
modified
私有化 name
参数并设置为不可修改
Function Illustrate
这是一个不确定性
Class
类名装载器,通过name
装载Class
名称数组。
fun get(loader: ClassLoader? = null, initialize: Boolean): Class<*>
Change Records
v1.0.70
added
v1.1.5
modified
新增 initialize
参数
Function Illustrate
获取匹配的实体类。
使用当前 loader
装载目标 Class
。
fun getOrNull(loader: ClassLoader? = null, initialize: Boolean): Class<*>?
Change Records
v1.1.0
added
v1.1.5
modified
新增 initialize
参数
Function Illustrate
获取匹配的实体类。
使用当前 loader
装载目标 Class
。
匹配不到 Class
会返回 null
,不会抛出异常。