Class ArrayTypes
- java.lang.Object
-
- org.eclipse.xtext.xbase.typesystem.references.ArrayTypes
-
public class ArrayTypes extends java.lang.ObjectStrategy to deal with Xbase specific conversion of types to arrays.
-
-
Constructor Summary
Constructors Constructor Description ArrayTypes()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LightweightTypeReferenceconvertToList(ArrayTypeReference type)ArrayTypeReferencetryConvertToArray(ParameterizedTypeReference typeReference)Returns the array representation of this reference if its represents a sub-type ofIterable.
-
-
-
Method Detail
-
tryConvertToArray
public ArrayTypeReference tryConvertToArray(ParameterizedTypeReference typeReference)
Returns the array representation of this reference if its represents a sub-type ofIterable. If the iterable's type is a primitive wrapper, the array is not the primitive array but the wrapper array. May returnnullif the conversion is not possible. This is the externalized and thereby exchangeable implementation ofParameterizedTypeReference.tryConvertToArray().- Parameters:
typeReference- the to-be-converted reference.- Returns:
- an equivalent
ArrayTypeReferenceornull.
-
convertToList
public LightweightTypeReference convertToList(ArrayTypeReference type)
-
-