class FunSpec : Taggable, OriginatingElementsHolder
A generated function declaration.
class Builder : Taggable.Builder<FunSpec.Builder>, OriginatingElementsHolder.Builder<FunSpec.Builder> |
val annotations: List<AnnotationSpec> |
|
val body: CodeBlock |
|
val delegateConstructor: String? |
|
val delegateConstructorArguments: List<CodeBlock> |
|
val isAccessor: Boolean |
|
val isConstructor: Boolean |
|
val kdoc: CodeBlock |
|
val modifiers: Set<KModifier> |
|
val name: String |
|
val parameters: List<ParameterSpec> |
|
val receiverKdoc: CodeBlock |
|
val receiverType: TypeName? |
|
val returnKdoc: CodeBlock |
|
val returnType: TypeName? |
|
val typeVariables: List<TypeVariableName> |
fun equals(other: Any?): Boolean |
|
fun hashCode(): Int |
|
fun toBuilder(): FunSpec.Builder |
|
fun toString(): String |
fun builder(name: String): FunSpec.Builder |
|
fun constructorBuilder(): FunSpec.Builder |
|
fun getterBuilder(): FunSpec.Builder |
|
fun overriding(method: ExecutableElement): FunSpec.Builder
Returns a new fun spec builder that overrides fun overriding(method: ExecutableElement, enclosing: DeclaredType, types: Types): FunSpec.Builder
Returns a new function spec builder that overrides |
|
fun setterBuilder(): FunSpec.Builder |
fun <T : Any> Taggable.tag(): T?
Returns the tag attached with T as a key, or null if no tag is attached with that key. |