import{_ as o,o as s,c as a,a as e}from"./app-CLu4Xwf8.js";const n={},t=e(`
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 ConstructorRules internal constructor(private val rulesData: ConstructorRulesData) : BaseRules
Change Records
v1.1.0 added
Function Illustrate
Constructor查找条件实现类。
var paramCount: Int
Change Records
v1.1.0 added
Function Illustrate
设置
Constructor参数个数。
你可以不使用 param 指定参数类型而是仅使用此变量指定参数个数。
若参数个数小于零则忽略并使用 param。
fun modifiers(conditions: ModifierConditions)
Change Records
v1.1.0 added
Function Illustrate
设置
Constructor标识符筛选条件。
可不设置筛选条件。
fun emptyParam()
Change Records
v1.1.0 added
Function Illustrate
设置
Constructor空参数、无参数。
fun param(vararg paramType: Any)
Change Records
v1.1.0 added
Function Illustrate
设置
Constructor参数。
如果同时使用了 paramCount 则 paramType 的数量必须与 paramCount 完全匹配。
如果 Constructor 中存在一些无意义又很长的类型,你可以使用 VagueType 来替代它。
Pay Attention
无参 Constructor 请使用 emptyParam 设置查找条件。
有参 Constructor 必须使用此方法设定参数或使用 paramCount 指定个数。
fun param(conditions: ObjectsConditions)
Change Records
v1.1.5 added
Function Illustrate
设置
Constructor参数条件。
Pay Attention
无参 Constructor 请使用 emptyParam 设置查找条件。
有参 Constructor 必须使用此方法设定参数或使用 paramCount 指定个数。
fun paramCount(numRange: IntRange)
Change Records
v1.1.0 added
Function Illustrate
设置
Constructor参数个数范围。
你可以不使用 param 指定参数类型而是仅使用此方法指定参数个数范围。
fun paramCount(conditions: CountConditions)
Change Records
v1.1.0 added
Function Illustrate
设置
Constructor参数个数条件。
你可以不使用 param 指定参数类型而是仅使用此方法指定参数个数条件。