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

jvmMain.com.lt.lazy_people_http.options.KspOptions.kt Maven / Gradle / Ivy

There is a newer version: 2.0.2
Show newest version
package com.lt.lazy_people_http.options

import com.google.devtools.ksp.processing.SymbolProcessorEnvironment

/**
 * creator: lt  2022/10/23  [email protected]
 * effect : 配置
 * warning:
 */
internal class KspOptions(environment: SymbolProcessorEnvironment) {
    private val options = environment.options
    private val isGetFunctionAnnotations = "lazyPeopleHttpGetFunctionAnnotations"

    /**
     * 是否需要在请求信息[RequestInfo]中附带"获取方法和其参数以及返回值上的注解(不包含Type的注解)"的方式
     */
    fun isGetFunctionAnnotations(): Boolean =
        options[isGetFunctionAnnotations] == "true"
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy