public class ResolvedArrayType extends Object implements ResolvedType
Constructor and Description |
---|
ResolvedArrayType(ResolvedType baseType) |
Modifier and Type | Method and Description |
---|---|
ResolvedArrayType |
asArrayType() |
String |
describe() |
boolean |
equals(Object o) |
ResolvedType |
getComponentType() |
int |
hashCode() |
boolean |
isArray()
Does this type represent an array?
|
boolean |
isAssignableBy(ResolvedType other)
This method checks if ThisType t = new OtherType() would compile.
|
ResolvedType |
replaceTypeVariables(ResolvedTypeParameterDeclaration tpToReplace,
ResolvedType replaced,
Map<ResolvedTypeParameterDeclaration,ResolvedType> inferredTypes)
Replace all variables referring to the given TypeParameter with the given value.
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
arrayLevel, asConstraintType, asPrimitive, asReferenceType, asTypeParameter, asTypeVariable, asUnionType, asWildcard, isConstraint, isNull, isPrimitive, isReference, isReferenceType, isTypeVariable, isUnionType, isVoid, isWildcard, mention, replaceTypeVariables
public ResolvedArrayType(ResolvedType baseType)
public ResolvedArrayType asArrayType()
asArrayType
in interface ResolvedType
public boolean isArray()
ResolvedType
isArray
in interface ResolvedType
public String describe()
describe
in interface ResolvedType
public ResolvedType getComponentType()
public boolean isAssignableBy(ResolvedType other)
ResolvedType
isAssignableBy
in interface ResolvedType
public ResolvedType replaceTypeVariables(ResolvedTypeParameterDeclaration tpToReplace, ResolvedType replaced, Map<ResolvedTypeParameterDeclaration,ResolvedType> inferredTypes)
ResolvedType
replaceTypeVariables
in interface ResolvedType
Copyright © 2007–2018. All rights reserved.