FieldData

data class FieldData(annotations: List<AnnotationSpec>, val isSynthetic: Boolean, val jvmModifiers: Set<JvmFieldModifier>, val 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

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

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val allAnnotations: Collection<AnnotationSpec>

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

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.

Link copied to clipboard

indicates if this field is synthetic or not.

Link copied to clipboard