gsonpath.generator.Constants.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.generator
import com.squareup.javapoet.AnnotationSpec
import javax.annotation.Generated
object Constants {
private const val GSON_PROPERTY = "mGson"
const val GSON = "gson"
const val NULL = "null"
const val IN = "in"
const val OUT = "out"
const val CONTINUE = "continue"
const val BREAK = "break"
const val VALUE = "value"
const val GET_ADAPTER = "$GSON_PROPERTY.getAdapter"
val GENERATED_ANNOTATION: AnnotationSpec = AnnotationSpec.builder(Generated::class.java).run {
addMember("value", "\"gsonpath.GsonProcessor\"")
addMember("comments", "\"https://github.com/LachlanMcKee/gsonpath\"")
build()
}
}