public class ArrayTypeM extends TypeM
| Constructor and Description |
|---|
ArrayTypeM(TypeM componentType) |
| Modifier and Type | Method and Description |
|---|---|
ImportTypesM |
addToImportTypes(ImportTypesM result) |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getGenericType()
Returns a String representation of the minimal generics definition of this type.
|
java.lang.String |
getGenericTypeDeclarationAsVarArgs() |
java.lang.String |
getGenericTypeDefinition()
Returns a String representation of the complete generics definition of this type.
|
int |
hashCode()
This
TypeM.hashCode() implementation doesn't use typeParameters to avoid a potential
StackOverflowError. |
boolean |
isArrayType() |
java.lang.String |
toString() |
getName, getPackageName, getSimpleName, getTypeParameters, isGeneric, isInPackage, isPrimitive, isTypeVariable, withTypeParameterpublic ArrayTypeM(TypeM componentType)
public boolean isArrayType()
isArrayType in class TypeMpublic java.lang.String getGenericTypeDefinition()
TypeM
Named generic types are represented with bounds. To get a minimal representation used for field
declarations see TypeM.getGenericType()
Example Output: "Map<T extends CharSequence, E extends List<? super Number>>"
getGenericTypeDefinition in class TypeMpublic java.lang.String getGenericType()
TypeM
Named generic types are represented without bounds, because they are defined in the class or
method signature. To get a representation of the full definition including bounds see
TypeM.getGenericTypeDefinition()
Example Output: "Map<T, ? extends List<? super Number>>"
getGenericType in class TypeMpublic java.lang.String getGenericTypeDeclarationAsVarArgs()
public ImportTypesM addToImportTypes(ImportTypesM result)
addToImportTypes in class TypeMpublic int hashCode()
TypeMTypeM.hashCode() implementation doesn't use typeParameters to avoid a potential
StackOverflowError. The TypeM.equals(Object) implementation does use that field.