Interface CodeBlock.FormattingOptions
- Enclosing class:
CodeBlock
public static interface CodeBlock.FormattingOptions
Strategy interface to customize formatting of generated code block.
- Author:
- Stephane Nicoll
-
Method Summary
Modifier and TypeMethodDescriptionReturn the code that represents an array for the specified values.classReference(ClassName className) Return the code that represents a reference to the specifiedClassName.Return the separator to use to end a statement.
-
Method Details
-
statementSeparator
String statementSeparator()Return the separator to use to end a statement.- Returns:
- the statement separator
-
arrayOf
-
classReference
-