gsonpath.adapter.AdapterFactory.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gsonpath-compiler Show documentation
Show all versions of gsonpath-compiler Show documentation
An annotation processor which generates Type Adapters for the Google Gson library
package gsonpath.adapter
import com.squareup.javapoet.ClassName
import gsonpath.dependencies.Dependencies
import gsonpath.util.Logger
import javax.annotation.processing.RoundEnvironment
import javax.lang.model.element.TypeElement
interface AdapterFactory {
fun generateGsonAdapters(
env: RoundEnvironment,
logger: Logger,
annotations: Set,
dependencies: Dependencies): List
}
class AdapterGenerationResult(
val adapterGenericTypeClassNames: Array,
val adapterClassName: ClassName)