gsonpath.util.Logger.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gsonpath-compiler-base Show documentation
Show all versions of gsonpath-compiler-base Show documentation
An annotation processor which generates Type Adapters for the Google Gson library
package gsonpath.util
import javax.annotation.processing.ProcessingEnvironment
import javax.tools.Diagnostic
interface Logger {
fun error(message: String)
}
class LoggerImpl(private val processingEnvironment: ProcessingEnvironment) : Logger {
override fun error(message: String) {
processingEnvironment.messager.printMessage(Diagnostic.Kind.ERROR, message)
}
}