public class TypeVariableM extends TypeM
| Constructor and Description |
|---|
TypeVariableM(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
ImportTypesM |
addToImportTypes(ImportTypesM result) |
boolean |
equals(java.lang.Object obj) |
protected java.lang.String |
getBoundRelation() |
java.lang.String |
getBoundsString() |
java.lang.String |
getGenericTypeDefinition()
Returns a String representation of the complete generics definition of this type.
|
boolean |
hasBounds() |
int |
hashCode()
This
TypeM.hashCode() implementation doesn't use typeParameters to avoid a potential
StackOverflowError. |
boolean |
isTypeVariable() |
java.lang.String |
toString() |
TypeVariableM |
whichExtends(TypeM... types) |
getGenericType, getName, getPackageName, getSimpleName, getTypeParameters, isArrayType, isGeneric, isInPackage, isPrimitive, withTypeParameterprotected final TypeListM bounds
public boolean isTypeVariable()
isTypeVariable in class TypeMpublic TypeVariableM whichExtends(TypeM... types)
public boolean hasBounds()
public java.lang.String getBoundsString()
public 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 TypeMprotected java.lang.String getBoundRelation()
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.