public static interface StringConcatenationClient.TargetStringConcatenation
extends java.lang.CharSequence
StringConcatenationClient.TargetStringConcatenation
models the public interface of a
StringConcatenation
so implementations of the StringConcatenationClient
can append their content properly.Modifier and Type | Method and Description |
---|---|
void |
append(java.lang.Object object)
Append the string representation of the given object to this sequence.
|
void |
append(java.lang.Object object,
java.lang.String indentation)
Add the string representation of the given object to this sequence.
|
void |
appendImmediate(java.lang.Object object,
java.lang.String indentation)
Add the string representation of the given object to this sequence immediately.
|
void |
newLine()
Add a newline to this sequence according to the configured lineDelimiter.
|
void |
newLineIfNotEmpty()
Add a newline to this sequence according to the configured lineDelimiter if the last line contains
something besides whitespace.
|
void newLineIfNotEmpty()
void newLine()
void appendImmediate(java.lang.Object object, java.lang.String indentation)
object
- the to-be-appended object.indentation
- the indentation string that should be prepended. May not be null
.void append(java.lang.Object object, java.lang.String indentation)
object
- the appended object.indentation
- the indentation string that should be prepended. May not be null
.void append(java.lang.Object object)
null
.object
- the to-be-appended object.