Interface PoetAddCodeBlockBuilder
-
- All Implemented Interfaces:
public interface PoetAddCodeBlockBuilder<SELF extends Object>Everything related to code blocks.
-
-
Method Summary
Modifier and Type Method Description abstract SELFaddCode(CodeBlock codeBlock)Adds a CodeBlock. SELFaddCode(String format, Object args)Formats the given String and arguments as CodeBlock and adds it. SELFaddCode(CodeBlockSupplier supplier)Add a CodeBlock by providing a supplier. SELFaddCode(Function1<CodeBlockBuilder, Unit> block)Receiver function for codeblock, use builder.addCode { ... }to add code.-
-
Method Detail
-
addCode
abstract SELF addCode(CodeBlock codeBlock)
Adds a CodeBlock. Must be implemented by the concrete builder.
-
addCode
SELF addCode(String format, Object args)
Formats the given String and arguments as CodeBlock and adds it.
-
addCode
SELF addCode(CodeBlockSupplier supplier)
Add a CodeBlock by providing a supplier.
-
addCode
SELF addCode(Function1<CodeBlockBuilder, Unit> block)
Receiver function for codeblock, use
builder.addCode { ... }to add code.
-
-
-
-