All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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)
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy