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