com.ooftf.spy.plugin.ApiInspectExcludeExtension.groovy Maven / Gradle / Ivy
package com.ooftf.spy.plugin
import com.google.common.base.Strings
/**
* Created by ooftf on 2021/3/2.
*/
class ApiInspectExcludeExtension {
Set apis = new HashSet<>()
void api(String name = "", String occurName = "", String method = "", String lineNumber = "") {
if (Strings.isNullOrEmpty(name) && Strings.isNullOrEmpty(occurName) && Strings.isNullOrEmpty(method) && Strings.isNullOrEmpty(lineNumber))
return
FilterItem item = new FilterItem()
item.name = name
item.occurName = occurName
item.method = method
item.lines = lineNumber
apis.add(item)
}
}