javapoet-dsl / com.mostlycertain.javapoetdsl / ExpressionBuilder

ExpressionBuilder

class ExpressionBuilder

Constructors

<init>

ExpressionBuilder(code: Builder)

Functions

indent

Increase the indent level of the expression.

fun indent(block: ExpressionBuilder.() -> Unit): Unit

write

Add some code snippet to the expression.

fun write(format: String, vararg args: Any): Unit
fun write(expression: CodeExpression): Unit

writeln

Add some code snippet to the expression followed by a line break.

fun writeln(format: String, vararg args: Any): Unit
fun writeln(expression: CodeExpression): Unit

Add a blank line.

fun writeln(): Unit