FieldData

data class FieldData(annotations: List<AnnotationSpec>, isSynthetic: Boolean, jvmModifiers: Set<JvmFieldModifier>, constant: CodeBlock?)

Represents relevant information on a field used for ClassInspector. Should only be associated with a PropertyData.

Parameters

annotations

declared annotations on this field.

Constructors

FieldData
Link copied to clipboard
fun FieldData(annotations: List<AnnotationSpec>, isSynthetic: Boolean, jvmModifiers: Set<JvmFieldModifier>, constant: CodeBlock?)

Types

Companion
Link copied to clipboard
object Companion

Properties

allAnnotations
Link copied to clipboard
val allAnnotations: Collection<AnnotationSpec>

A collection of all annotations on this method, including any derived from jvmModifiers and isSynthetic.

constant
Link copied to clipboard
val constant: CodeBlock?

the constant value of this field, if available. Note that this is does not strictly imply that the associated property is const.

isSynthetic
Link copied to clipboard
val isSynthetic: Boolean

indicates if this field is synthetic or not.

jvmModifiers
Link copied to clipboard
val jvmModifiers: Set<JvmFieldModifier>

set of JvmMethodModifiers on this field.