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