public class IndentPolicy
extends java.lang.Object
| Constructor and Description |
|---|
IndentPolicy() |
| Modifier and Type | Method and Description |
|---|---|
void |
appendIndent(java.lang.StringBuilder builder)
Appends an indentation unit to the given string builder.
|
void |
appendIndent(java.lang.StringBuilder builder,
int n)
Appends the given number of indentation units to the given string builder.
|
void |
appendLine(java.lang.StringBuilder builder)
Appends a line separator to the given string builder.
|
public void appendIndent(java.lang.StringBuilder builder)
builder - a string builder (not null)public void appendIndent(java.lang.StringBuilder builder,
int n)
This implementation calls appendIndent(StringBuilder)
the specified number of times.
builder - a string builder (not null)n - the number of indentation units to appendpublic void appendLine(java.lang.StringBuilder builder)
builder - a string builder (not null)Copyright (c) 2014, 2020 1C-Soft LLC and others. Made available under the Eclipse Public License 2.0