epoxy-processor / com.airbnb.epoxy.processor

Package com.airbnb.epoxy.processor

Types

Asyncable

interface Asyncable

AttributeInfo

abstract class AttributeInfo : Comparable<AttributeInfo>

BaseProcessor

abstract class BaseProcessor : AbstractProcessor, Asyncable

BaseProcessorWithPackageConfigs

abstract class BaseProcessorWithPackageConfigs : BaseProcessor

ClassNames

object ClassNames

ConfigManager

class ConfigManager

Manages configuration settings for different packages.

ControllerClassInfo

class ControllerClassInfo

ControllerModelField

data class ControllerModelField

ControllerProcessor

class ControllerProcessor : BaseProcessorWithPackageConfigs

DataBindingModuleLookup

class DataBindingModuleLookup

DataBindingProcessor

class DataBindingProcessor : BaseProcessor

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.

GeneratedModelInfo

abstract class GeneratedModelInfo

GeneratedModelWriter

class GeneratedModelWriter

GroupedAttribute

class GroupedAttribute

ImportScanner

open class ImportScanner : ElementScanner7<Void!, Void!>

KClassNames

object KClassNames

Logger

class Logger

Memoizer

class Memoizer

MethodInfo

data class MethodInfo

ModelBuilderInterfaceWriter

class ModelBuilderInterfaceWriter : Asyncable

Creates an interface for a generated model that contains all of the valid setters for building a model in an EpoxyController. This allows us to expose the interface when building a model and hide all of the non applicable junk that shouldn't be used when building a model (eg equals/bind/toString etc)

ModelViewInfo

class ModelViewInfo : GeneratedModelInfo

ModelViewProcessor

class ModelViewProcessor : BaseProcessorWithPackageConfigs

MultiParamAttribute

interface MultiParamAttribute

Allows an attribute to have multiple parameters in the model setter method. Those params are then combined into a single object to be set on the attribute.

Mutex

class Mutex

PackageConfigSettings

class PackageConfigSettings

Stores configuration settings for a package.

PackageModelViewSettings

class PackageModelViewSettings

ParisStyle

data class ParisStyle

ParisStyleAttributeInfo

class ParisStyleAttributeInfo : AttributeInfo

Represents a Paris Style option for a model. This is added automatically for models generated with ModelView that also have Paris's Stylable annotation.

ResourceProcessor

class ResourceProcessor

Scans R files and and compiles resource values in those R classes. This allows us to look up raw resource values (eg 23523452) and convert that to the resource name (eg R.layout.my_view) so that we can properly reference that resource. This is important in library projects where the R value at process time can be different from the final R value in the app.

ResourceValue

class ResourceValue

Represents a resource used as an annotation parameter.

Timing

data class Timing

Type

class Type

This helps to memoize the look up of a type's information.

ViewAttributeInfo

class ViewAttributeInfo : AttributeInfo

ViewAttributeType

sealed class ViewAttributeType

Type Aliases

JavaAnnotationSpec

typealias JavaAnnotationSpec = AnnotationSpec

JavaArrayTypeName

typealias JavaArrayTypeName = ArrayTypeName

JavaClassName

typealias JavaClassName = ClassName

JavaFieldSpec

typealias JavaFieldSpec = FieldSpec

JavaParameterSpec

typealias JavaParameterSpec = ParameterSpec

JavaParametrizedTypeName

typealias JavaParametrizedTypeName = ParameterizedTypeName

JavaTypeName

typealias JavaTypeName = TypeName

JavaTypeSpec

typealias JavaTypeSpec = TypeSpec

JavaTypeVariableName

typealias JavaTypeVariableName = TypeVariableName

JavaWildcardTypeName

typealias JavaWildcardTypeName = WildcardTypeName

KotlinAnnotationSpec

typealias KotlinAnnotationSpec = AnnotationSpec

KotlinClassName

typealias KotlinClassName = ClassName

KotlinParameterizedTypeName

typealias KotlinParameterizedTypeName = ParameterizedTypeName

KotlinParameterSpec

typealias KotlinParameterSpec = ParameterSpec

KotlinTypeName

typealias KotlinTypeName = TypeName

KotlinTypeSpec

typealias KotlinTypeSpec = TypeSpec

KotlinTypeVariableName

typealias KotlinTypeVariableName = TypeVariableName

KotlinWildcardTypeName

typealias KotlinWildcardTypeName = WildcardTypeName

Extensions for External Classes

com.squareup.javapoet.AnnotationSpec

com.squareup.javapoet.ArrayTypeName

com.squareup.javapoet.ClassName

com.squareup.javapoet.JavaFile

com.squareup.javapoet.ParameterizedTypeName

com.squareup.javapoet.ParameterSpec

com.squareup.javapoet.TypeName

com.squareup.javapoet.TypeVariableName

com.squareup.javapoet.WildcardTypeName

com.squareup.kotlinpoet.FileSpec

java.lang.Class

javax.annotation.processing.RoundEnvironment

javax.lang.model.element.Element

javax.lang.model.element.ExecutableElement

javax.lang.model.element.Modifier

javax.lang.model.element.Parameterizable

javax.lang.model.element.TypeElement

javax.lang.model.type.TypeMirror

javax.lang.model.util.Elements

kotlin.Any

kotlin.collections.Iterable

kotlin.collections.MutableMap

kotlin.reflect.KClass

kotlin.String

Properties

BUILDER_STYLE_METHOD_PREFIX

const val BUILDER_STYLE_METHOD_PREFIX: String

DEPRECATED

const val DEPRECATED: String

MODEL_BUILDER_INTERFACE_SUFFIX

const val MODEL_BUILDER_INTERFACE_SUFFIX: String

PARIS_DEFAULT_STYLE_CONSTANT_NAME

const val PARIS_DEFAULT_STYLE_CONSTANT_NAME: String

PARIS_STYLE_ATTR_NAME

const val PARIS_STYLE_ATTR_NAME: String

synchronizationEnabled

var synchronizationEnabled: Boolean

typeLookupMutex

val typeLookupMutex: Mutex

Functions

areOverloads

fun areOverloads(e1: ExecutableElement, e2: ExecutableElement): Boolean

True if the two elements represent overloads of the same function in a class.

ensureLoaded

fun <T : Element> T.ensureLoaded(): T

getTypeMirror

fun getTypeMirror(className: ClassName, elements: Elements, types: Types): TypeMirror
fun getTypeMirror(clazz: Class<*>, elements: Elements): TypeMirror

getTypeMirrorNullable

fun getTypeMirrorNullable(className: ClassName, elements: Elements, types: Types): TypeMirror?
fun getTypeMirrorNullable(clazz: Class<*>, elements: Elements): TypeMirror?
fun getTypeMirrorNullable(canonicalName: String, elements: Elements): TypeMirror?

isLambda

fun isLambda(type: JavaTypeName): Boolean

synchronizedByElement

fun <R> synchronizedByElement(element: Element, block: () -> R): R

synchronizedByValue

fun <R> synchronizedByValue(value: Any, block: () -> R): R

synchronizedForTypeLookup

fun <R> synchronizedForTypeLookup(block: () -> R): R

typeMirror

fun typeMirror(block: () -> KClass<*>): TypeMirror?

weakReferenceFieldForStyle

fun weakReferenceFieldForStyle(styleName: String): String