epoxy-processor / com.airbnb.epoxy.processor / AttributeInfo

AttributeInfo

abstract class AttributeInfo : Comparable<AttributeInfo>

Types

DefaultValue

class DefaultValue

Constructors

<init>

AttributeInfo()

Properties

codeToSetDefault

val codeToSetDefault: AttributeInfo.DefaultValue

If .isGenerated is true, a default value for the field can be set here.

doNotUseInToString

var doNotUseInToString: Boolean

fieldName

lateinit var fieldName: String

generateGetter

var generateGetter: Boolean

generateSetter

var generateSetter: Boolean

getterAnnotations

var getterAnnotations: MutableList<AnnotationSpec>

getterMethodName

var getterMethodName: String?

groupKey

var groupKey: String?

If this attribute is in an attribute group this is the name of the group.

hasFinalModifier

var hasFinalModifier: Boolean

hasSuperSetter

var hasSuperSetter: Boolean

Track whether there is a setter method for this attribute on a super class so that we can call through to super.

ignoreRequireHashCode

var ignoreRequireHashCode: Boolean

isBoolean

val isBoolean: Boolean

isCharSequenceOrString

val isCharSequenceOrString: Boolean

isDouble

val isDouble: Boolean

isDrawableRes

val isDrawableRes: Boolean

isEpoxyModelList

val isEpoxyModelList: Boolean

isGenerated

var isGenerated: Boolean

True if this attribute is completely generated as a field on the generated model. False if it exists as a user defined attribute in a model super class.

isInt

val isInt: Boolean

isLong

val isLong: Boolean

isNullable

var isNullable: Boolean?

If isGenerated is true, this represents whether null is a valid value to set on the attribute. If this is true, then the codeToSetDefault should be null unless a different default value is explicitly set.

isPackagePrivate

var isPackagePrivate: Boolean

isPrimitive

val isPrimitive: Boolean

isPrivate

var isPrivate: Boolean

isRawRes

val isRawRes: Boolean

isRequired

open val isRequired: Boolean

isStringAttributeData

val isStringAttributeData: Boolean

isStringList

val isStringList: Boolean

isViewCheckedChangeListener

val isViewCheckedChangeListener: Boolean

isViewClickListener

val isViewClickListener: Boolean

isViewLongClickListener

val isViewLongClickListener: Boolean

javaDoc

var javaDoc: CodeBlock?

packageName

var packageName: String?

rootClass

lateinit var rootClass: String

setterAnnotations

var setterAnnotations: MutableList<AnnotationSpec>

setterMethodName

var setterMethodName: String?

type

lateinit var type: Type

typeMirror

lateinit var typeMirror: TypeMirror

typeName

val typeName: TypeName

useInHash

var useInHash: Boolean

Functions

compareTo

open fun compareTo(other: AttributeInfo): Int

equals

open fun equals(other: Any?): Boolean

generatedGetterName

open fun generatedGetterName(isOverload: Boolean): String

generatedSetterName

open fun generatedSetterName(): String

getterCode

fun getterCode(): String

hashCode

open fun hashCode(): Int

hasSetNullability

fun hasSetNullability(): Boolean

isNullable

fun isNullable(): Boolean

setJavaDocString

fun setJavaDocString(docComment: String?): Unit

setterCode

fun setterCode(): String

setTypeMirror

fun setTypeMirror(typeMirror: TypeMirror, memoizer: Memoizer): Unit

superGetterCode

fun superGetterCode(): String

toString

open fun toString(): String

Extension Functions

mutex

fun Any.mutex(): Mutex

Inheritors

ParisStyleAttributeInfo

class ParisStyleAttributeInfo : 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.

ViewAttributeInfo

class ViewAttributeInfo : AttributeInfo