moshi-sealed-codegen / dev.zacsweers.moshisealed.codegen / MoshiSealedProcessor

MoshiSealedProcessor

@IncrementalAnnotationProcessor(IncrementalAnnotationProcessorType.AGGREGATING) @SupportedOptions(["moshi.generated"]) @AutoService([Processor]) class MoshiSealedProcessor : AbstractProcessor

Constructors

<init>

MoshiSealedProcessor()

Functions

getSupportedAnnotationTypes

fun getSupportedAnnotationTypes(): Set<String>

getSupportedSourceVersion

fun getSupportedSourceVersion(): SourceVersion

init

fun init(processingEnv: ProcessingEnvironment): Unit

process

fun process(annotations: Set<TypeElement>, roundEnv: RoundEnvironment): Boolean

Companion Object Properties

OPTION_GENERATED

const val OPTION_GENERATED: String

This annotation processing argument can be specified to have a @Generated annotation included in the generated code. It is not encouraged unless you need it for static analysis reasons and not enabled by default.