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, wait
arrayLevel, asConstraintType, asPrimitive, asReferenceType, asTypeParameter, asTypeVariable, asWildcard, isConstraint, isNull, isPrimitive, isReference, isReferenceType, isTypeVariable, isVoid, isWildcard, replaceTypeVariables
public ArrayType(Type baseType)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public ArrayType asArrayType()
asArrayType
in interface Type
public boolean isArray()
Type
public Type getComponentType()
public boolean isAssignableBy(Type other)
Type
isAssignableBy
in interface Type
public Type replaceTypeVariables(TypeParameterDeclaration tpToReplace, Type replaced, java.util.Map<TypeParameterDeclaration,Type> inferredTypes)
Type
replaceTypeVariables
in interface Type