Package org.eclipse.xtend2.lib
Class StringConcatenationClient
java.lang.Object
org.eclipse.xtend2.lib.StringConcatenationClient
A callback object that allows to reuse an existing
StringConcatenation
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 override StringConcatenation.getStringRepresentation(Object)
.- Since:
- 2.5
- Author:
- Sebastian Zarnekow - Initial contribution and API
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
AStringConcatenationClient.TargetStringConcatenation
models the public interface of aStringConcatenation
so implementations of theStringConcatenationClient
can append their content properly. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
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.
-
Constructor Details
-
StringConcatenationClient
public StringConcatenationClient()
-
-
Method Details
-
appendTo
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
-