abstract class GeneratedModelInfo
class AttributeGroup |
|
data class ConstructorInfo |
GeneratedModelInfo(memoizer: Memoizer) |
val annotations: MutableList<AnnotationSpec> |
|
val attributeGroups: MutableList<GeneratedModelInfo.AttributeGroup> |
|
val attributeInfo: MutableList<AttributeInfo> |
|
val constructors: MutableList<GeneratedModelInfo.ConstructorInfo> |
|
lateinit var generatedName: ClassName |
|
var includeOtherLayoutOptions: Boolean
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. |
|
val isProgrammaticView: Boolean |
|
val isStyleable: Boolean |
|
val isSuperClassAlsoGenerated: Boolean |
|
var layoutParams: Size
An option set via com.airbnb.epoxy.ModelView.autoLayout to have Epoxy create the view programmatically instead of via xml layout resource inflation. |
|
val memoizer: Memoizer |
|
val methodsReturningClassType: MutableSet<MethodInfo> |
|
var modelType: TypeName?
Get the object type this model is typed with. |
|
lateinit var parameterizedGeneratedName: TypeName |
|
var shouldGenerateModel: Boolean |
|
var styleBuilderInfo: ParisStyleAttributeInfo?
The info for the style builder if this is a model view annotated with @Styleable. Null otherwise. |
|
lateinit var superClassElement: TypeElement |
|
lateinit var superClassName: TypeName |
|
val typeVariableNames: MutableList<TypeVariableName> |
|
val typeVariables: Iterable<TypeVariableName> |
fun addAttribute(attributeInfo: AttributeInfo): Unit |
|
fun addAttributeGroup(groupName: String?, attributes: List<AttributeInfo>): Unit |
|
fun addAttributeIfNotExists(attributeToAdd: AttributeInfo): Unit |
|
fun addAttributes(attributesToAdd: Collection<AttributeInfo>): Unit |
|
open fun additionalOriginatingElements(): List<Element> |
|
fun collectMethodsReturningClassType(superModelClass: TypeElement): Unit
Get information about methods returning class type of the original class so we can duplicate them in the generated class for chaining purposes |
|
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 |
|
fun hasEmptyConstructor(): Boolean |
|
fun isInGroup(attribute: AttributeInfo): Boolean |
|
fun isOverload(attribute: AttributeInfo): Boolean |
|
fun originatingElements(): List<Element>
The elements that influence the generation of this model. eg base model class for @EpoxyModelClass, view class for @ModelView, etc |
|
fun otherAttributesInGroup(attribute: AttributeInfo): List<AttributeInfo>
If this attribute is in a group, returns the other attributes contained in that group. |
|
fun setStyleable(parisStyleAttributeInfo: ParisStyleAttributeInfo): Unit |
|
open fun toString(): String |
const val GENERATED_CLASS_NAME_SUFFIX: String |
|
const val GENERATED_MODEL_SUFFIX: String |
|
const val RESET_METHOD: String |
fun buildParamSpecs(params: List<VariableElement>): List<ParameterSpec> |
fun Any.mutex(): Mutex |
class ModelViewInfo : GeneratedModelInfo |