epoxy-processor / com.airbnb.epoxy / EpoxyProcessor

EpoxyProcessor

@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.

Constructors

<init>

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

Properties

KAPT_KOTLIN_GENERATED_OPTION_NAME

static val KAPT_KOTLIN_GENERATED_OPTION_NAME: String

Functions

getSupportedAnnotationTypes

open fun getSupportedAnnotationTypes(): MutableSet<String!>!

getSupportedSourceVersion

open fun getSupportedSourceVersion(): SourceVersion!

init

open fun init(processingEnv: ProcessingEnvironment!): Unit

process

open fun process(annotations: MutableSet<out TypeElement!>!, roundEnv: RoundEnvironment!): Boolean

withImplicitAdding

open static fun withImplicitAdding(): EpoxyProcessor!

For testing.

withNoValidation

open static fun withNoValidation(): EpoxyProcessor!

For testing.