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 interfaceAStringConcatenationClient.TargetStringConcatenationmodels the public interface of aStringConcatenationso implementations of theStringConcatenationClientcan append their content properly. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidImplementors have to override this method and feed the given target instance.static voidappendTo(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.TargetStringConcatenationto-append-to. Nevernull.
-
appendTo
public static void appendTo(StringConcatenationClient client, StringConcatenationClient.TargetStringConcatenation target) Delegates toappendTo(TargetStringConcatenation)to make it publicly accessible.- Parameters:
client- theStringConcatenationClienton whichappendTo(TargetStringConcatenation)is invoked.target- theStringConcatenationClient.TargetStringConcatenationto-append-to. Nevernull.- Since:
- 2.10
-