epoxy-processor / com.airbnb.epoxy.processor / EpoxyProcessor

EpoxyProcessor

@IncrementalAnnotationProcessor(IncrementalAnnotationProcessorType.AGGREGATING) class EpoxyProcessor : BaseProcessorWithPackageConfigs

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()

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.

Properties

usesModelViewConfig

val usesModelViewConfig: Boolean

usesPackageEpoxyConfig

val usesPackageEpoxyConfig: Boolean

Functions

additionalSupportedAnnotations

fun additionalSupportedAnnotations(): List<KClass<*>>

processRound

suspend fun processRound(roundEnv: RoundEnvironment, roundNumber: Int): Unit

Inherited Functions

originatingConfigElements

fun originatingConfigElements(): List<Element>

Returns all of the package config elements applicable to this processor.

supportedAnnotations

fun supportedAnnotations(): List<KClass<*>>

Companion Object Functions

buildAttributeInfo

fun buildAttributeInfo(attribute: Element, logger: Logger, typeUtils: Types, elementUtils: Elements, memoizer: Memoizer): AttributeInfo

Extension Functions

mutex

fun Any.mutex(): Mutex