@SupportedOptions(["implicitlyAddAutoModels", "validateEpoxyModelUsage", "requireAbstractEpoxyModels", "requireHashCodeInEpoxyModels", "disableEpoxyKotlinExtensionGeneration", "kapt.kotlin.generated"]) open class EpoxyProcessor : AbstractProcessor
Looks for EpoxyAttribute annotations and generates a subclass for all classes that have those attributes. The generated subclass includes setters, getters, equals, and hashcode for the given field. Any constructors on the original class are duplicated. Abstract classes are ignored since generated classes would have to be abstract in order to guarantee they compile, and that reduces their usefulness and doesn't make as much sense to support.
EpoxyProcessor()EpoxyProcessor(options: MutableMap<String!, String!>!)
Constructor to use for tests to pass annotation processor options since we can't get them from the build.gradle |
static val KAPT_KOTLIN_GENERATED_OPTION_NAME: String |
open fun getSupportedAnnotationTypes(): MutableSet<String!>! |
|
open fun getSupportedSourceVersion(): SourceVersion! |
|
open fun init(processingEnv: ProcessingEnvironment!): Unit |
|
open fun process(annotations: MutableSet<out TypeElement!>!, roundEnv: RoundEnvironment!): Boolean |
|
open static fun withImplicitAdding(): EpoxyProcessor!
For testing. |
|
open static fun withNoValidation(): EpoxyProcessor!
For testing. |