FunSpec

class FunSpec : Taggable, OriginatingElementsHolder

A generated function declaration.

Types

Builder
Link copied to clipboard
Companion
Link copied to clipboard
object Companion

Functions

equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
tag
Link copied to clipboard
open override fun <T : Any> tag(type: Class<T>): T?
Returns the tag attached with type as a key, or null if no tag is attached with that key.
open override fun <T : Any> tag(type: KClass<T>): T?
Returns the tag attached with type as a key, or null if no tag is attached with that key.
toBuilder
Link copied to clipboard
fun toBuilder(name: String = this.name): FunSpec.Builder
toString
Link copied to clipboard
open override fun toString(): String

Properties

annotations
Link copied to clipboard
val annotations: List<AnnotationSpec>
body
Link copied to clipboard
val body: CodeBlock
delegateConstructor
Link copied to clipboard
val delegateConstructor: String?
delegateConstructorArguments
Link copied to clipboard
val delegateConstructorArguments: List<CodeBlock>
isAccessor
Link copied to clipboard
val isAccessor: Boolean
isConstructor
Link copied to clipboard
val isConstructor: Boolean
kdoc
Link copied to clipboard
val kdoc: CodeBlock
modifiers
Link copied to clipboard
val modifiers: Set<KModifier>
name
Link copied to clipboard
val name: String
originatingElements
Link copied to clipboard
open override val originatingElements: List<Element>
The originating elements of this type.
parameters
Link copied to clipboard
val parameters: List<ParameterSpec>
receiverKdoc
Link copied to clipboard
val receiverKdoc: CodeBlock
receiverType
Link copied to clipboard
val receiverType: TypeName?
returnKdoc
Link copied to clipboard
val returnKdoc: CodeBlock
returnType
Link copied to clipboard
val returnType: TypeName?
tags
Link copied to clipboard
open override val tags: Map<KClass<*>, Any>
Returns all tags.
typeVariables
Link copied to clipboard
val typeVariables: List<TypeVariableName>