Class ImportingStringConcatenation
- java.lang.Object
-
- org.eclipse.xtend2.lib.StringConcatenation
-
- org.eclipse.xtext.xbase.compiler.output.ImportingStringConcatenation
-
- All Implemented Interfaces:
java.lang.CharSequence
public class ImportingStringConcatenation extends org.eclipse.xtend2.lib.StringConcatenation
A specializedStringConcatenation
that will properly convert instances ofClass
,JvmType
,JvmTypeReference
orLightweightTypeReference
to their valid serialized representation including import handling.
-
-
Constructor Summary
Constructors Constructor Description ImportingStringConcatenation(SharedAppendableState state, ITypeReferenceOwner typeReferenceOwner)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
_getStringRepresentation(java.lang.Class<?> object)
protected java.lang.String
_getStringRepresentation(java.lang.Object object)
protected java.lang.String
_getStringRepresentation(org.eclipse.xtext.common.types.JvmType object)
protected java.lang.String
_getStringRepresentation(org.eclipse.xtext.common.types.JvmTypeReference object)
protected java.lang.String
_getStringRepresentation(LightweightTypeReference 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)
-
Methods inherited from class org.eclipse.xtend2.lib.StringConcatenation
append, append, append, append, append, append, append, append, append, append, appendImmediate, appendSegments, appendSegments, appendSegments, charAt, getContent, getLineDelimiter, length, newLine, newLineIfNotEmpty, splitLinesAndNewLines, subSequence, toString
-
-
-
-
Constructor Detail
-
ImportingStringConcatenation
public ImportingStringConcatenation(SharedAppendableState state, ITypeReferenceOwner typeReferenceOwner)
-
-
Method Detail
-
_getStringRepresentation
protected java.lang.String _getStringRepresentation(java.lang.Object object)
-
_getStringRepresentation
protected java.lang.String _getStringRepresentation(org.eclipse.xtext.common.types.JvmType object)
-
_getStringRepresentation
protected java.lang.String _getStringRepresentation(org.eclipse.xtext.common.types.JvmTypeReference object)
-
_getStringRepresentation
protected java.lang.String _getStringRepresentation(LightweightTypeReference object)
-
_getStringRepresentation
protected java.lang.String _getStringRepresentation(java.lang.Class<?> object)
-
getSignificantContent
protected java.util.List<java.lang.String> getSignificantContent()
A potentially contained trailing line delimiter is ignored.- Overrides:
getSignificantContent
in classorg.eclipse.xtend2.lib.StringConcatenation
-
getStringRepresentation
protected java.lang.String getStringRepresentation(java.lang.Object object)
- Overrides:
getStringRepresentation
in classorg.eclipse.xtend2.lib.StringConcatenation
-
-