MutableMethodReference

Represents a declared method for a particular class.

This representation is mutable, to allow changing properties of the method.

Properties

Link copied to clipboard
open override var annotations: List<AnnotationInstance>

The set of annotations applied to this member definition.

Link copied to clipboard

The constant default value returned by this method, if defined on an annotation class.

Link copied to clipboard
open override var modifiers: Set<Modifier>

The set of modifiers applied to the member definition.

Link copied to clipboard
open override var name: String

The member name.

Link copied to clipboard
open override val parameters: List<MutableParameter>

The MutableParameter arguments that this constructor must be invoked with.

Link copied to clipboard
open override var returnType: ClassReference

The type that is returned by this method, or voidType if none is defined.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard

Removes bytecode stored to describe this method's implementation.

Link copied to clipboard
fun setParameter(index: Int, parameter: NewParameter)

Replaces an individual parameter argument.

Link copied to clipboard
fun setParameters(vararg parameters: NewParameter)
fun setParameters(parameters: List<NewParameter>)

Updates the list of all parameter arguments that this constructor must be invoked with.

Link copied to clipboard
open override fun toString(): String