public interface BlockContainer<T>
Modifier and Type | Method and Description |
---|---|
T |
block(java.lang.Object block)
Defines the contained block.
|
default T |
body(java.lang.Object... statements)
Defines the block as the given statements.
|
Block |
getBlock() |
T block(java.lang.Object block)
This is a builder method.
block
- an object that can be converted into a Block
Block.of(Object)