ModelViewInfo

class ModelViewInfo(viewElement: TypeElement, typeUtils: Types, elements: Elements, logger: Logger, configManager: ConfigManager, resourceProcessor: ResourceProcessor, memoizer: Memoizer) : GeneratedModelInfo

Functions

addAfterPropsSetMethod
Link copied to clipboard
fun addAfterPropsSetMethod(methodName: String)
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 override fun additionalOriginatingElements(): List<TypeElement>
addOnRecycleMethod
Link copied to clipboard
fun addOnRecycleMethod(methodName: String)
addOnVisibilityChangedMethod
Link copied to clipboard
fun addOnVisibilityChangedMethod(methodName: String)
addOnVisibilityStateChangedMethod
Link copied to clipboard
fun addOnVisibilityStateChangedMethod(methodName: String)
attributeGroup
Link copied to clipboard
fun attributeGroup(attribute: AttributeInfo): GeneratedModelInfo.AttributeGroup?
buildProp
Link copied to clipboard
fun buildProp(prop: Element): ViewAttributeInfo
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
getLayoutResource
Link copied to clipboard
fun getLayoutResource(resourceProcessor: ResourceProcessor): ResourceValue
hasEmptyConstructor
Link copied to clipboard
fun hasEmptyConstructor(): Boolean
isOverload
Link copied to clipboard
fun isOverload(attribute: AttributeInfo): Boolean
kotlinMetadata
Link copied to clipboard
fun Element.kotlinMetadata(): KotlinClassMetadata?
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

afterPropsSetMethodNames
Link copied to clipboard
val afterPropsSetMethodNames: MutableSet<String>
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
elements
Link copied to clipboard
val elements: Elements
fullSpanSize
Link copied to clipboard
val fullSpanSize: Boolean
functionsWithSingleDefaultParameter
Link copied to clipboard
val functionsWithSingleDefaultParameter: List<KmFunction>
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
kotlinMetadata
Link copied to clipboard
val kotlinMetadata: KotlinClassMetadata?
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.
logger
Link copied to clipboard
val logger: Logger
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
resetMethodNames
Link copied to clipboard
val resetMethodNames: MutableSet<String>
saveViewState
Link copied to clipboard
val saveViewState: Boolean
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
typeUtils
Link copied to clipboard
val typeUtils: Types
typeVariableNames
Link copied to clipboard
val typeVariableNames: MutableList<TypeVariableName>
typeVariables
Link copied to clipboard
val typeVariables: Iterable<TypeVariableName>
viewAttributes
Link copied to clipboard
val viewAttributes: List<ViewAttributeInfo>
viewElement
Link copied to clipboard
val viewElement: TypeElement
viewInterfaces
Link copied to clipboard
val viewInterfaces: List<TypeElement>
All interfaces the view implements that have at least one prop set by the interface.
visibilityChangedMethodNames
Link copied to clipboard
val visibilityChangedMethodNames: MutableSet<String>
visibilityStateChangedMethodNames
Link copied to clipboard
val visibilityStateChangedMethodNames: MutableSet<String>