MethodData

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

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

Types

Companion
Link copied to clipboard
object Companion

Functions

allAnnotations
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.

Properties

exceptions
Link copied to clipboard
val exceptions: List<TypeName>
list of exceptions thrown by this method.
isOverride
Link copied to clipboard
val isOverride: Boolean
indicates if this method overrides one in a supertype.
isSynthetic
Link copied to clipboard
val isSynthetic: Boolean
indicates if this method is synthetic or not.
jvmModifiers
Link copied to clipboard
val jvmModifiers: Set<JvmMethodModifier>
set of JvmMethodModifiers on this method.
parameterAnnotations
Link copied to clipboard
val parameterAnnotations: Map<Int, Collection<AnnotationSpec>>
a mapping of parameter indices to annotations on them.