FunSpec

class FunSpec : Taggable, OriginatingElementsHolder

A generated function declaration.

Types

Link copied to clipboard
Link copied to clipboard
object Companion

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

Link copied to clipboard
fun toBuilder(name: String = this.name): FunSpec.Builder
Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard
val annotations: List<AnnotationSpec>
Link copied to clipboard
val body: CodeBlock
Link copied to clipboard
val delegateConstructor: String?
Link copied to clipboard
val delegateConstructorArguments: List<CodeBlock>
Link copied to clipboard
val isAccessor: Boolean
Link copied to clipboard
val isConstructor: Boolean
Link copied to clipboard
val kdoc: CodeBlock
Link copied to clipboard
val modifiers: Set<KModifier>
Link copied to clipboard
val name: String
Link copied to clipboard
open override val originatingElements: List<Element>

The originating elements of this type.

Link copied to clipboard
val parameters: List<ParameterSpec>
Link copied to clipboard
val receiverKdoc: CodeBlock
Link copied to clipboard
val receiverType: TypeName?
Link copied to clipboard
val returnKdoc: CodeBlock
Link copied to clipboard
val returnType: TypeName?
Link copied to clipboard
open override val tags: Map<KClass<*>, Any>

Returns all tags.

Link copied to clipboard
val typeVariables: List<TypeVariableName>