ConstructorRules

Deprecated

YukiHookAPI will completely remove the API of its own reflection part in version 2.0.0. We recommend that you use KavaRef to implement reflection for better performance and maintainability. See: https://github.com/HighCapable/KavaRef

Constructor finder condition implementation.

Parameters

rulesData

the current finder rule data.

Properties

Link copied to clipboard

Sets the Constructor parameter count.

Functions

Link copied to clipboard

Configures an empty, parameterless Constructor.

Link copied to clipboard
fun modifiers(conditions: ModifierConditions)

Sets the Constructor modifier conditions.

Link copied to clipboard
fun param(conditions: ObjectsConditions)

Sets the Constructor parameter conditions.

fun param(vararg paramType: Any)

Sets the Constructor parameters.

Link copied to clipboard
fun paramCount(conditions: CountConditions)

Sets the Constructor parameter-count condition.

fun paramCount(numRange: IntRange)

Sets the Constructor parameter-count range.