| Modifier and Type | Method and Description |
|---|---|
ArrayType |
asArrayType() |
String |
describe() |
boolean |
equals(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,
Map<TypeParameterDeclaration,Type> inferredTypes)
Replace all variables referring to the given TypeParameter with the given value.
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitarrayLevel, asPrimitive, asReferenceType, asTypeParameter, asWildcard, isNull, isPrimitive, isReference, isReferenceType, isTypeVariable, isVoid, isWildcard, replaceTypeVariablespublic ArrayType(Type baseType)
public 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, Map<TypeParameterDeclaration,Type> inferredTypes)
TypereplaceTypeVariables in interface TypeCopyright © 2016. All rights reserved.