GeneratedModelInfo

abstract class GeneratedModelInfo(memoizer: Memoizer)

Types

AttributeGroup
Link copied to clipboard
class AttributeGroup
Companion
Link copied to clipboard
object Companion
ConstructorInfo
Link copied to clipboard
data class ConstructorInfo

Functions

addAttribute
Link copied to clipboard
fun addAttribute(attributeInfo: AttributeInfo)
addAttributeGroup
Link copied to clipboard
fun addAttributeGroup(groupName: String?, attributes: List<AttributeInfo>)
addAttributeIfNotExists
Link copied to clipboard
fun addAttributeIfNotExists(attributeToAdd: AttributeInfo)
addAttributes
Link copied to clipboard
fun addAttributes(attributesToAdd: Collection<AttributeInfo>)
additionalOriginatingElements
Link copied to clipboard
open fun additionalOriginatingElements(): List<Element>
attributeGroup
Link copied to clipboard
fun attributeGroup(attribute: AttributeInfo): GeneratedModelInfo.AttributeGroup?
collectMethodsReturningClassType
Link copied to clipboard
fun collectMethodsReturningClassType(superModelClass: TypeElement)
Get information about methods returning class type of the original class so we can duplicate them in the generated class for chaining purposes
getClassConstructors
Link copied to clipboard
fun getClassConstructors(classElement: TypeElement?): List<GeneratedModelInfo.ConstructorInfo>
Get information about constructors of the original class so we can duplicate them in the generated class and call through to super with the proper parameters
hasEmptyConstructor
Link copied to clipboard
fun hasEmptyConstructor(): Boolean
isOverload
Link copied to clipboard
fun isOverload(attribute: AttributeInfo): Boolean
originatingElements
Link copied to clipboard
fun originatingElements(): List<Element>
The elements that influence the generation of this model.
otherAttributesInGroup
Link copied to clipboard
fun otherAttributesInGroup(attribute: AttributeInfo): List<AttributeInfo>
If this attribute is in a group, returns the other attributes contained in that group.
setStyleable
Link copied to clipboard
fun setStyleable(parisStyleAttributeInfo: ParisStyleAttributeInfo)
toString
Link copied to clipboard
open override fun toString(): String

Properties

annotations
Link copied to clipboard
val annotations: MutableList<AnnotationSpec>
attributeGroups
Link copied to clipboard
attributeInfo
Link copied to clipboard
val attributeInfo: MutableList<AttributeInfo>
attributeInfoImmutable
Link copied to clipboard
val attributeInfoImmutable: List<AttributeInfo>
constructors
Link copied to clipboard
generatedName
Link copied to clipboard
lateinit var generatedName: ClassName
includeOtherLayoutOptions
Link copied to clipboard
var includeOtherLayoutOptions: Boolean = false
If true, any layout classes that exist that are prefixed by the default layout are included in the generated model as other layout options via a generated method for each alternate layout.
isProgrammaticView
Link copied to clipboard
val isProgrammaticView: Boolean
isStyleable
Link copied to clipboard
val isStyleable: Boolean
isSuperClassAlsoGenerated
Link copied to clipboard
val isSuperClassAlsoGenerated: Boolean
layoutParams
Link copied to clipboard
var layoutParams: ModelView.Size
An option set via com.airbnb.epoxy.ModelView.autoLayout to have Epoxy create the view programmatically instead of via xml layout resource inflation.
memoizer
Link copied to clipboard
val memoizer: Memoizer
methodsReturningClassType
Link copied to clipboard
val methodsReturningClassType: MutableSet<MethodInfo>
modelType
Link copied to clipboard
var modelType: TypeName? = null
Get the object type this model is typed with.
parameterizedGeneratedName
Link copied to clipboard
lateinit var parameterizedGeneratedName: TypeName
shouldGenerateModel
Link copied to clipboard
var shouldGenerateModel: Boolean = false
styleBuilderInfo
Link copied to clipboard
var styleBuilderInfo: ParisStyleAttributeInfo? = null
The info for the style builder if this is a model view annotated with @Styleable.
superClassElement
Link copied to clipboard
lateinit var superClassElement: TypeElement
superClassName
Link copied to clipboard
lateinit var superClassName: TypeName
typeVariableNames
Link copied to clipboard
val typeVariableNames: MutableList<TypeVariableName>
typeVariables
Link copied to clipboard
val typeVariables: Iterable<TypeVariableName>

Inheritors

ModelViewInfo
Link copied to clipboard