FunctionSpec

class FunctionSpec : AttributedSpec

A generated function declaration.

Types

Builder
Link copied to clipboard
class Builder : Taggable.Builder<FunctionSpec.Builder>
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
inline 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.
inline 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(): FunctionSpec.Builder
toString
Link copied to clipboard
open override fun toString(): String

Properties

attributes
Link copied to clipboard
val attributes: List<AttributeSpec>
body
Link copied to clipboard
val body: CodeBlock
doc
Link copied to clipboard
val doc: CodeBlock
failable
Link copied to clipboard
val failable: Boolean
isAccessor
Link copied to clipboard
val isAccessor: Boolean
isConstructor
Link copied to clipboard
val isConstructor: Boolean
localTypeSpecs
Link copied to clipboard
val localTypeSpecs: MutableList<AnyTypeSpec>
modifiers
Link copied to clipboard
val modifiers: Set<Modifier>
name
Link copied to clipboard
val name: String
parameters
Link copied to clipboard
val parameters: List<ParameterSpec>
returnType
Link copied to clipboard
val returnType: TypeName?
tags
Link copied to clipboard
val tags: Map<KClass<*>, Any>
all tags.
throws
Link copied to clipboard
val throws: Boolean
typeVariables
Link copied to clipboard
val typeVariables: List<TypeVariableName>