MethodData

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

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

Parameters

annotations

declared annotations on this method.

Constructors

MethodData
Link copied to clipboard

declared annotations on this method.

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

Types

Companion
Link copied to clipboard
object Companion

Functions

allAnnotations
Link copied to clipboard

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

fun allAnnotations(useSiteTarget: AnnotationSpec.UseSiteTarget?, containsReifiedTypeParameter: Boolean): Collection<AnnotationSpec>
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(): Boolean
component6
Link copied to clipboard
operator fun component6(): List<TypeName>
copy
Link copied to clipboard
fun copy(annotations: List<AnnotationSpec>, parameterAnnotations: Map<Int, Collection<AnnotationSpec>>, isSynthetic: Boolean, jvmModifiers: Set<JvmMethodModifier>, isOverride: Boolean, exceptions: List<TypeName>): MethodData
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

exceptions
Link copied to clipboard

list of exceptions thrown by this method.

val exceptions: List<TypeName>
isOverride
Link copied to clipboard

indicates if this method overrides one in a supertype.

val isOverride: Boolean
isSynthetic
Link copied to clipboard

indicates if this method is synthetic or not.

val isSynthetic: Boolean
jvmModifiers
Link copied to clipboard

set of JvmMethodModifiers on this method.

val jvmModifiers: Set<JvmMethodModifier>
parameterAnnotations
Link copied to clipboard

a mapping of parameter indices to annotations on them.

val parameterAnnotations: Map<Int, Collection<AnnotationSpec>>