EzHookTool
Toggle table of contents
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
EzHookTool
core
/
io.github.lingqiqi5211.ezhooktool.core
/
getFieldOrNull
get
Field
Or
Null
fun
Any
.
getFieldOrNull
(
fieldName
:
String
,
type
:
Class
<
*
>
?
=
null
)
:
Any
?
按名称读取字段值,找不到返回 null(不抛异常)。
Parameters
field
Name
字段名
type
可选字段类型,用于进一步约束匹配结果