| Modifier and Type | Method and Description |
|---|---|
ArrayType |
asArrayType() |
java.lang.String |
describe() |
boolean |
equals(java.lang.Object o) |
Type |
getComponentType() |
int |
hashCode() |
boolean |
isArray()
Does this type represent an array?
|
boolean |
isAssignableBy(Type other)
This method checks if ThisType t = new OtherType() would compile.
|
Type |
replaceTypeVariables(TypeParameterDeclaration tpToReplace,
Type replaced,
java.util.Map<TypeParameterDeclaration,Type> inferredTypes)
Replace all variables referring to the given TypeParameter with the given value.
|
java.lang.String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitarrayLevel, asConstraintType, asPrimitive, asReferenceType, asTypeParameter, asTypeVariable, asWildcard, isConstraint, isNull, isPrimitive, isReference, isReferenceType, isTypeVariable, isVoid, isWildcard, replaceTypeVariablespublic ArrayType(Type baseType)
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic ArrayType asArrayType()
asArrayType in interface Typepublic boolean isArray()
Typepublic Type getComponentType()
public boolean isAssignableBy(Type other)
TypeisAssignableBy in interface Typepublic Type replaceTypeVariables(TypeParameterDeclaration tpToReplace, Type replaced, java.util.Map<TypeParameterDeclaration,Type> inferredTypes)
TypereplaceTypeVariables in interface Type