EpoxyProcessor

@IncrementalAnnotationProcessor(value = 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

EpoxyProcessor
Link copied to clipboard
fun EpoxyProcessor()

Types

Companion
Link copied to clipboard
object Companion

Functions

additionalSupportedAnnotations
Link copied to clipboard
open override fun additionalSupportedAnnotations(): List<KClass<*>>
filter
Link copied to clipboard
open suspend fun <T : Any> Iterable<T>.filter(tag: String, parallel: Boolean = true, block: suspend (T) -> Boolean): List<T>
forEach
Link copied to clipboard
open suspend fun <T> Iterable<T>.forEach(tag: String, parallel: Boolean = true, block: suspend (T) -> Unit)
open suspend fun <K, V> Map<K, V>.forEach(tag: String, parallel: Boolean = true, block: suspend (K, V) -> Any?)
getCompletions
Link copied to clipboard
open override fun getCompletions(p0: Element, p1: AnnotationMirror, p2: ExecutableElement, p3: String): MutableIterable<Completion>
getElementsAnnotatedWith
Link copied to clipboard
suspend fun RoundEnvironment.getElementsAnnotatedWith(annotation: KClass<out Annotation>): Set<Element>
getSupportedAnnotationTypes
Link copied to clipboard
open override fun getSupportedAnnotationTypes(): Set<String>
getSupportedOptions
Link copied to clipboard
open override fun getSupportedOptions(): Set<String>
getSupportedSourceVersion
Link copied to clipboard
open override fun getSupportedSourceVersion(): SourceVersion
init
Link copied to clipboard
open override fun init(processingEnv: ProcessingEnvironment)
isInitialized
Link copied to clipboard
open fun isInitialized(): Boolean
map
Link copied to clipboard
open suspend fun <T, R : Any> Iterable<T>.map(tag: String, parallel: Boolean = true, transform: suspend (T) -> R?): List<R>
open suspend fun <K, V, R : Any> Map<K, V>.map(tag: String, parallel: Boolean = true, transform: suspend (K, V) -> R?): List<R>
originatingConfigElements
Link copied to clipboard
fun originatingConfigElements(): List<Element>
Returns all of the package config elements applicable to this processor.
process
Link copied to clipboard
override fun process(annotations: Set<TypeElement?>, roundEnv: RoundEnvironment): Boolean
supportedAnnotations
Link copied to clipboard
override fun supportedAnnotations(): List<KClass<*>>

Properties

configManager
Link copied to clipboard
lateinit var configManager: ConfigManager
coroutineExceptionHandler
Link copied to clipboard
val coroutineExceptionHandler: CoroutineExceptionHandler
coroutineScope
Link copied to clipboard
open override val coroutineScope: CoroutineScope
coroutinesEnabled
Link copied to clipboard
open override val coroutinesEnabled: Boolean
dataBindingModuleLookup
Link copied to clipboard
val dataBindingModuleLookup: DataBindingModuleLookup
elementUtils
Link copied to clipboard
lateinit var elementUtils: Elements
filer
Link copied to clipboard
lateinit var filer: Filer
generatedModels
Link copied to clipboard
val generatedModels: MutableList<GeneratedModelInfo>
logger
Link copied to clipboard
open override val logger: Logger
memoizer
Link copied to clipboard
val memoizer: Memoizer
messager
Link copied to clipboard
lateinit var messager: Messager
modelWriter
Link copied to clipboard
val modelWriter: GeneratedModelWriter
processingEnv
Link copied to clipboard
val processingEnv: ProcessingEnvironment
resourceProcessor
Link copied to clipboard
lateinit var resourceProcessor: ResourceProcessor
typeUtils
Link copied to clipboard
lateinit var typeUtils: Types
usesModelViewConfig
Link copied to clipboard
open override val usesModelViewConfig: Boolean = false
usesPackageEpoxyConfig
Link copied to clipboard
open override val usesPackageEpoxyConfig: Boolean = true