public class Code extends Object
This component wraps a string inside a
preand
codeelement
| Modifier and Type | Class and Description |
|---|---|
static class |
Code.Block
Wraps a string inside
|
static class |
Code.Statement
Wrap a single line string into a
|
| Constructor and Description |
|---|
Code() |
| Modifier and Type | Method and Description |
|---|---|
static Code.Block |
block()
creates a empty code Block
|
static Code.Block |
block(String code)
Factory to create code Block
|
static Code.Statement |
statement(String code)
factory to create a single statement code block
|
public static Code.Block block(String code)
code - The code Stringpublic static Code.Block block()
public static Code.Statement statement(String code)
code - The code stringCopyright © 2019–2022 Dominokit. All rights reserved.