Package org.eclipse.xtend2.lib
Class StringConcatenationClient
- java.lang.Object
-
- org.eclipse.xtend2.lib.StringConcatenationClient
-
@GwtCompatible public abstract class StringConcatenationClient extends java.lang.Object
A callback object that allows to reuse an existingStringConcatenation
to append content to it. This puts clients into the position that they can fully control the used instance, e.g. they can use a custom line delimiter or overrideStringConcatenation.getStringRepresentation(Object)
.- Since:
- 2.5
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
StringConcatenationClient.TargetStringConcatenation
AStringConcatenationClient.TargetStringConcatenation
models the public interface of aStringConcatenation
so implementations of theStringConcatenationClient
can append their content properly.
-
Constructor Summary
Constructors Constructor Description StringConcatenationClient()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
appendTo(StringConcatenationClient.TargetStringConcatenation target)
Implementors have to override this method and feed the given target instance.static void
appendTo(StringConcatenationClient client, StringConcatenationClient.TargetStringConcatenation target)
Delegates toappendTo(TargetStringConcatenation)
to make it publicly accessible.
-
-
-
Method Detail
-
appendTo
protected void appendTo(StringConcatenationClient.TargetStringConcatenation target)
Implementors have to override this method and feed the given target instance.- Parameters:
target
- theStringConcatenationClient.TargetStringConcatenation
to-append-to. Nevernull
.
-
appendTo
public static void appendTo(StringConcatenationClient client, StringConcatenationClient.TargetStringConcatenation target)
Delegates toappendTo(TargetStringConcatenation)
to make it publicly accessible.- Parameters:
client
- theStringConcatenationClient
on whichappendTo(TargetStringConcatenation)
is invoked.target
- theStringConcatenationClient.TargetStringConcatenation
to-append-to. Nevernull
.- Since:
- 2.10
-
-