JsonClassCodegenProcessor

@AutoService(value = [Processor::class])
class JsonClassCodegenProcessor : AbstractProcessor

An annotation processor that reads Kotlin data classes and generates Moshi JsonAdapters for them. This generates Kotlin code, and understands basic Kotlin language features like default values and companion objects.

The generated class will match the visibility of the given data class (i.e. if it's internal, the adapter will also be internal).

Constructors

Link copied to clipboard
fun JsonClassCodegenProcessor()

Functions

Link copied to clipboard
open override fun getCompletions(    p0: Element,     p1: AnnotationMirror,     p2: ExecutableElement,     p3: String): MutableIterable<Completion>
Link copied to clipboard
open override fun getSupportedAnnotationTypes(): Set<String>
Link copied to clipboard
open override fun getSupportedOptions(): Set<String>
Link copied to clipboard
open override fun getSupportedSourceVersion(): SourceVersion
Link copied to clipboard
open override fun init(processingEnv: ProcessingEnvironment)
Link copied to clipboard
open override fun process(annotations: Set<TypeElement>, roundEnv: RoundEnvironment): Boolean