Package org.eclipse.xtend2.lib
Class StringConcatenationClient
- java.lang.Object
-
- org.eclipse.xtend2.lib.StringConcatenationClient
-
@GwtCompatible public abstract class StringConcatenationClient extends java.lang.ObjectA callback object that allows to reuse an existingStringConcatenationto 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 interfaceStringConcatenationClient.TargetStringConcatenationAStringConcatenationClient.TargetStringConcatenationmodels the public interface of aStringConcatenationso implementations of theStringConcatenationClientcan 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 voidappendTo(StringConcatenationClient.TargetStringConcatenation target)Implementors 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.
-
-
-
Method Detail
-
appendTo
protected void appendTo(StringConcatenationClient.TargetStringConcatenation target)
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
-
-