ParisStyleAttributeInfo

class ParisStyleAttributeInfo(modelInfo: GeneratedModelInfo, elements: Elements, types: Types, packageName: String, styleBuilderClassName: ClassName, styleBuilderElement: Element) : 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.

Constructors

ParisStyleAttributeInfo
Link copied to clipboard
fun ParisStyleAttributeInfo(modelInfo: GeneratedModelInfo, elements: Elements, types: Types, packageName: String, styleBuilderClassName: ClassName, styleBuilderElement: Element)

Functions

compareTo
Link copied to clipboard
open operator override fun compareTo(other: AttributeInfo): Int
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
generatedGetterName
Link copied to clipboard
open fun generatedGetterName(isOverload: Boolean): String
generatedSetterName
Link copied to clipboard
open fun generatedSetterName(): String
getterCode
Link copied to clipboard
fun getterCode(): String
hashCode
Link copied to clipboard
open override fun hashCode(): Int
hasSetNullability
Link copied to clipboard
fun hasSetNullability(): Boolean
isNullable
Link copied to clipboard
fun isNullable(): Boolean
setterCode
Link copied to clipboard
fun setterCode(): String
superGetterCode
Link copied to clipboard
fun superGetterCode(): String
toString
Link copied to clipboard
open override fun toString(): String

Properties

codeToSetDefault
Link copied to clipboard
val codeToSetDefault: AttributeInfo.DefaultValue
If .
doNotUseInToString
Link copied to clipboard
var doNotUseInToString: Boolean = false
elements
Link copied to clipboard
val elements: Elements
fieldName
Link copied to clipboard
lateinit var fieldName: String
generateGetter
Link copied to clipboard
var generateGetter: Boolean = false
generateSetter
Link copied to clipboard
var generateSetter: Boolean = false
getterAnnotations
Link copied to clipboard
var getterAnnotations: MutableList<AnnotationSpec>
groupKey
Link copied to clipboard
var groupKey: String? = null
If this attribute is in an attribute group this is the name of the group.
hasFinalModifier
Link copied to clipboard
var hasFinalModifier: Boolean = false
hasSuperSetter
Link copied to clipboard
var hasSuperSetter: Boolean = false
Track whether there is a setter method for this attribute on a super class so that we can call through to super.
ignoreRequireHashCode
Link copied to clipboard
var ignoreRequireHashCode: Boolean = false
isBoolean
Link copied to clipboard
val isBoolean: Boolean
isCharSequenceOrString
Link copied to clipboard
val isCharSequenceOrString: Boolean
isDouble
Link copied to clipboard
val isDouble: Boolean
isDrawableRes
Link copied to clipboard
val isDrawableRes: Boolean
isEpoxyModelList
Link copied to clipboard
val isEpoxyModelList: Boolean
isGenerated
Link copied to clipboard
var isGenerated: Boolean = false
True if this attribute is completely generated as a field on the generated model.
isInt
Link copied to clipboard
val isInt: Boolean
isLong
Link copied to clipboard
val isLong: Boolean
isNullable
Link copied to clipboard
var isNullable: Boolean? = null
If isGenerated is true, this represents whether null is a valid value to set on the attribute.
isPackagePrivate
Link copied to clipboard
var isPackagePrivate: Boolean = false
isPrimitive
Link copied to clipboard
val isPrimitive: Boolean
isPrivate
Link copied to clipboard
var isPrivate: Boolean = false
isRawRes
Link copied to clipboard
val isRawRes: Boolean
isRequired
Link copied to clipboard
open val isRequired: Boolean
isStringAttributeData
Link copied to clipboard
val isStringAttributeData: Boolean
isStringList
Link copied to clipboard
val isStringList: Boolean
isViewCheckedChangeListener
Link copied to clipboard
val isViewCheckedChangeListener: Boolean
isViewClickListener
Link copied to clipboard
val isViewClickListener: Boolean
isViewLongClickListener
Link copied to clipboard
val isViewLongClickListener: Boolean
javaDoc
Link copied to clipboard
var javaDoc: CodeBlock? = null
packageName
Link copied to clipboard
var packageName: String? = null
rootClass
Link copied to clipboard
lateinit var rootClass: String
setterAnnotations
Link copied to clipboard
var setterAnnotations: MutableList<AnnotationSpec>
styleApplierClass
Link copied to clipboard
val styleApplierClass: ClassName
styleBuilderClass
Link copied to clipboard
val styleBuilderClass: ClassName
styleBuilderElement
Link copied to clipboard
val styleBuilderElement: Element
styles
Link copied to clipboard
val styles: List<ParisStyle>
type
Link copied to clipboard
lateinit var type: Type
typeMirror
Link copied to clipboard
lateinit var typeMirror: TypeMirror
typeName
Link copied to clipboard
val typeName: TypeName
types
Link copied to clipboard
val types: Types
useInHash
Link copied to clipboard
var useInHash: Boolean = false