epoxy-processor / com.airbnb.epoxy.processor / BaseProcessorWithPackageConfigs

BaseProcessorWithPackageConfigs

abstract class BaseProcessorWithPackageConfigs : BaseProcessor

Constructors

<init>

BaseProcessorWithPackageConfigs()

Properties

usesModelViewConfig

abstract val usesModelViewConfig: Boolean

usesPackageEpoxyConfig

abstract val usesPackageEpoxyConfig: Boolean

Inherited Properties

configManager

lateinit var configManager: ConfigManager

coroutineExceptionHandler

val coroutineExceptionHandler: CoroutineExceptionHandler

coroutineScope

open val coroutineScope: CoroutineScope

coroutinesEnabled

open val coroutinesEnabled: Boolean

dataBindingModuleLookup

val dataBindingModuleLookup: DataBindingModuleLookup

elementUtils

lateinit var elementUtils: Elements

filer

lateinit var filer: Filer

generatedModels

val generatedModels: MutableList<GeneratedModelInfo>

logger

open val logger: Logger

memoizer

val memoizer: Memoizer

messager

lateinit var messager: Messager

modelWriter

val modelWriter: GeneratedModelWriter

resourceProcessor

lateinit var resourceProcessor: ResourceProcessor

typeUtils

lateinit var typeUtils: Types

Functions

additionalSupportedAnnotations

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

originatingConfigElements

fun originatingConfigElements(): List<Element>

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

processRound

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

supportedAnnotations

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

Inherited Functions

getElementsAnnotatedWith

suspend fun RoundEnvironment.getElementsAnnotatedWith(annotation: KClass<out Annotation>): Set<Element>

getSupportedAnnotationTypes

open fun getSupportedAnnotationTypes(): Set<String>

getSupportedOptions

open fun getSupportedOptions(): Set<String>

getSupportedSourceVersion

open fun getSupportedSourceVersion(): SourceVersion

init

open fun init(processingEnv: ProcessingEnvironment): Unit

process

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

Extension Functions

mutex

fun Any.mutex(): Mutex

Inheritors

ControllerProcessor

class ControllerProcessor : BaseProcessorWithPackageConfigs

EpoxyProcessor

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.

ModelViewProcessor

class ModelViewProcessor : BaseProcessorWithPackageConfigs