ConstructorData

data class ConstructorData(annotations: List<AnnotationSpec>, val parameterAnnotations: Map<Int, Collection<AnnotationSpec>>, val isSynthetic: Boolean, val jvmModifiers: Set<JvmMethodModifier>, val 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

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

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val allAnnotations: Collection<AnnotationSpec>

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

Link copied to clipboard
val exceptions: List<TypeName>

list of exceptions thrown by this constructor.

Link copied to clipboard

indicates if this constructor is synthetic or not.

Link copied to clipboard

set of JvmMethodModifiers on this constructor.

Link copied to clipboard
val parameterAnnotations: Map<Int, Collection<AnnotationSpec>>

a mapping of parameter indices to annotations on them.