Package org.eclipse.xtend2.lib
Interface StringConcatenationClient.TargetStringConcatenation
-
- All Superinterfaces:
java.lang.CharSequence
- Enclosing class:
- StringConcatenationClient
public static interface StringConcatenationClient.TargetStringConcatenation extends java.lang.CharSequence
AStringConcatenationClient.TargetStringConcatenation
models the public interface of aStringConcatenation
so implementations of theStringConcatenationClient
can append their content properly.- Since:
- 2.5
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
newLineIfNotEmpty
void newLineIfNotEmpty()
Add a newline to this sequence according to the configured lineDelimiter if the last line contains something besides whitespace.
-
newLine
void newLine()
Add a newline to this sequence according to the configured lineDelimiter.
-
appendImmediate
void appendImmediate(java.lang.Object object, java.lang.String indentation)
Add the string representation of the given object to this sequence immediately. That is, all the trailing whitespace of this sequence will be ignored and the string is appended directly after the last segment that contains something besides whitespace. The given indentation will be prepended to each line except the first one if the object has a multi-line string representation.- Parameters:
object
- the to-be-appended object.indentation
- the indentation string that should be prepended. May not benull
.
-
append
void append(java.lang.Object object, java.lang.String indentation)
Add the string representation of the given object to this sequence. The given indentation will be prepended to each line except the first one if the object has a multi-line string representation.- Parameters:
object
- the appended object.indentation
- the indentation string that should be prepended. May not benull
.
-
append
void append(java.lang.Object object)
Append the string representation of the given object to this sequence. Does nothing if the object isnull
.- Parameters:
object
- the to-be-appended object.
-
-