epoxy-processor / com.airbnb.epoxy

Package com.airbnb.epoxy

Types

ClassNames

object ClassNames

ControllerClassInfo

class ControllerClassInfo

ControllerModelField

class ControllerModelField

EpoxyProcessor

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.

ErrorLogger

class ErrorLogger

KClassNames

object KClassNames

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.

PackageConfigSettings

class PackageConfigSettings

Stores configuration settings for a package.

PackageModelViewSettings

class PackageModelViewSettings

ParisStyle

data class ParisStyle

ResourceValue

class ResourceValue

Represents a resource used as an annotation parameter.

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

com.squareup.javapoet.ParameterSpec

com.squareup.javapoet.TypeName

com.squareup.javapoet.TypeVariableName

com.squareup.javapoet.WildcardTypeName

java.lang.Class

javax.lang.model.AnnotatedConstruct

javax.lang.model.element.Element

javax.lang.model.element.Modifier

javax.lang.model.element.TypeElement

javax.lang.model.util.Elements

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

Functions

areOverloads

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

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

getTypeMirror

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

isLambda

fun isLambda(type: JavaTypeName): Boolean

weakReferenceFieldForStyle

fun weakReferenceFieldForStyle(styleName: String): String