ConstructorData

data class ConstructorData(annotations: List<AnnotationSpec>, parameterAnnotations: Map<Int, Collection<AnnotationSpec>>, isSynthetic: Boolean, jvmModifiers: Set<JvmMethodModifier>, exceptions: List<TypeName>)

Represents relevant information on a constructor used for ClassInspector. Should only be associated with constructors of a ClassData.

Parameters

annotations

declared annotations on this constructor.

Constructors

ConstructorData
Link copied to clipboard
fun ConstructorData(annotations: List<AnnotationSpec>, parameterAnnotations: Map<Int, Collection<AnnotationSpec>>, isSynthetic: Boolean, jvmModifiers: Set<JvmMethodModifier>, exceptions: List<TypeName>)
declared annotations on this constructor.

Types

Companion
Link copied to clipboard
object Companion

Functions

component2
Link copied to clipboard
operator fun component2(): Map<Int, Collection<AnnotationSpec>>
component3
Link copied to clipboard
operator fun component3(): Boolean
component4
Link copied to clipboard
operator fun component4(): Set<JvmMethodModifier>
component5
Link copied to clipboard
operator fun component5(): List<TypeName>
copy
Link copied to clipboard
fun copy(annotations: List<AnnotationSpec>, parameterAnnotations: Map<Int, Collection<AnnotationSpec>>, isSynthetic: Boolean, jvmModifiers: Set<JvmMethodModifier>, exceptions: List<TypeName>): ConstructorData
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
val allAnnotations: Collection<AnnotationSpec>
A collection of all annotations on this constructor, including any derived from jvmModifiers, isSynthetic, and exceptions.
exceptions
Link copied to clipboard
val exceptions: List<TypeName>
list of exceptions thrown by this constructor.
isSynthetic
Link copied to clipboard
val isSynthetic: Boolean
indicates if this constructor is synthetic or not.
jvmModifiers
Link copied to clipboard
val jvmModifiers: Set<JvmMethodModifier>
set of JvmMethodModifiers on this constructor.
parameterAnnotations
Link copied to clipboard
val parameterAnnotations: Map<Int, Collection<AnnotationSpec>>
a mapping of parameter indices to annotations on them.