FieldData

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

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

Parameters

annotations

declared annotations on this field.

Constructors

FieldData
Link copied to clipboard

declared annotations on this field.

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

Types

Companion
Link copied to clipboard
object Companion

Functions

component2
Link copied to clipboard
operator fun component2(): Boolean
component3
Link copied to clipboard
operator fun component3(): Set<JvmFieldModifier>
component4
Link copied to clipboard
operator fun component4(): CodeBlock?
copy
Link copied to clipboard
fun copy(annotations: List<AnnotationSpec>, isSynthetic: Boolean, jvmModifiers: Set<JvmFieldModifier>, constant: CodeBlock?): FieldData
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
toString
Link copied to clipboard
open override fun toString(): String

Properties

allAnnotations
Link copied to clipboard

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

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

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

val constant: CodeBlock?
isSynthetic
Link copied to clipboard

indicates if this field is synthetic or not.

val isSynthetic: Boolean
jvmModifiers
Link copied to clipboard

set of JvmMethodModifiers on this field.

val jvmModifiers: Set<JvmFieldModifier>