WhenBlockBuilder

class WhenBlockBuilder(over: ArgString)

Constructors

Link copied to clipboard
fun WhenBlockBuilder(name: String, vararg args: Any?)

Functions

Link copied to clipboard
fun addCase(condition: ArgString, block: CodeBlock)
inline fun addCase(name: String, vararg args: Any?, f: CodeBlock.Builder.() -> Unit)
Link copied to clipboard
fun build(): CodeBlock
Link copied to clipboard
inline fun buildElse(f: CodeBlock.Builder.() -> Unit)