public class ImportingStringConcatenation extends StringConcatenation
StringConcatenation
that will properly convert instances of
Class
, JvmType
, JvmTypeReference
or LightweightTypeReference
to their valid serialized representation including import handling.DEFAULT_LINE_DELIMITER
Constructor and Description |
---|
ImportingStringConcatenation(SharedAppendableState state,
ITypeReferenceOwner typeReferenceOwner) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
_getStringRepresentation(java.lang.Class<?> object) |
protected java.lang.String |
_getStringRepresentation(JvmType object) |
protected java.lang.String |
_getStringRepresentation(JvmTypeReference object) |
protected java.lang.String |
_getStringRepresentation(LightweightTypeReference object) |
protected java.lang.String |
_getStringRepresentation(java.lang.Object object) |
protected java.util.List<java.lang.String> |
getSignificantContent()
A potentially contained trailing line delimiter is ignored.
|
protected java.lang.String |
getStringRepresentation(java.lang.Object object)
Computes the string representation of the given object.
|
append, append, append, append, appendImmediate, appendSegments, appendSegments, appendSegments, charAt, getLineDelimiter, length, newLine, newLineIfNotEmpty, splitLinesAndNewLines, subSequence, toString
public ImportingStringConcatenation(SharedAppendableState state, ITypeReferenceOwner typeReferenceOwner)
protected java.lang.String _getStringRepresentation(java.lang.Object object)
protected java.lang.String _getStringRepresentation(JvmType object)
protected java.lang.String _getStringRepresentation(JvmTypeReference object)
protected java.lang.String _getStringRepresentation(LightweightTypeReference object)
protected java.lang.String _getStringRepresentation(java.lang.Class<?> object)
protected java.util.List<java.lang.String> getSignificantContent()
getSignificantContent
in class StringConcatenation
null
.protected java.lang.String getStringRepresentation(java.lang.Object object)
StringConcatenation
Object.toString()
but clients may override and specialize
the logic.getStringRepresentation
in class StringConcatenation
object
- the object that shall be appended. Never null
.null
.