MethodData

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

Represents relevant information on a method used for ClassInspector. Should only be associated with methods of a ClassData or PropertyData.

Parameters

annotations

declared annotations on this method.

Constructors

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

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val exceptions: List<TypeName>

list of exceptions thrown by this method.

Link copied to clipboard

indicates if this method overrides one in a supertype.

Link copied to clipboard

indicates if this method is synthetic or not.

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

a mapping of parameter indices to annotations on them.

Functions

Link copied to clipboard
fun allAnnotations(useSiteTarget: AnnotationSpec.UseSiteTarget? = null, containsReifiedTypeParameter: Boolean = false): Collection<AnnotationSpec>

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