class FunSpec
A generated function declaration.
| Builder |
class Builder |
| annotations |
val annotations: List<AnnotationSpec> |
| code |
val code: CodeBlock |
| defaultValue |
val defaultValue: CodeBlock? |
| exceptions |
val exceptions: List<TypeName> |
| isConstructor |
val isConstructor: Boolean |
| kdoc |
val kdoc: CodeBlock |
| modifiers |
val modifiers: Set<KModifier> |
| name |
val name: String |
| parameters |
val parameters: List<ParameterSpec> |
| returnType |
val returnType: TypeName? |
| typeVariables |
val typeVariables: List<TypeVariableName> |
| varargs |
val varargs: Boolean |
| equals |
fun equals(other: Any?): Boolean |
| hashCode |
fun hashCode(): Int |
| toBuilder |
fun toBuilder(): Builder |
| toString |
fun toString(): String |
| builder |
fun builder(name: String): Builder |
| constructorBuilder |
fun constructorBuilder(): Builder |
| overriding |
fun overriding(method: ExecutableElement): Builder
Returns a new fun spec builder that overrides fun overriding(method: ExecutableElement, enclosing: DeclaredType, types: Types): Builder
Returns a new function spec builder that overrides |