public class ResolvedTypeVariable extends Object implements ResolvedType
| Constructor and Description |
|---|
ResolvedTypeVariable(ResolvedTypeParameterDeclaration typeParameter) |
| Modifier and Type | Method and Description |
|---|---|
ResolvedTypeParameterDeclaration |
asTypeParameter() |
ResolvedTypeVariable |
asTypeVariable() |
String |
describe() |
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
isArray()
Does this type represent an array?
|
boolean |
isAssignableBy(ResolvedType other)
This method checks if ThisType t = new OtherType() would compile.
|
boolean |
isPrimitive()
Is this a primitive type?
|
boolean |
isReferenceType()
Can this be seen as a ReferenceTypeUsage?
In other words: is this a reference to a class, an interface or an enum?
|
boolean |
isTypeVariable() |
boolean |
mention(List<ResolvedTypeParameterDeclaration> typeParameters)
Does this type mention at all, directly or indirectly, the given type parameters?
|
String |
qualifiedName() |
ResolvedType |
replaceTypeVariables(ResolvedTypeParameterDeclaration tpToBeReplaced,
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, waitarrayLevel, asArrayType, asConstraintType, asPrimitive, asReferenceType, asUnionType, asWildcard, isConstraint, isNull, isReference, isUnionType, isVoid, isWildcard, replaceTypeVariablespublic ResolvedTypeVariable(ResolvedTypeParameterDeclaration typeParameter)
public String qualifiedName()
public boolean isArray()
ResolvedTypeisArray in interface ResolvedTypepublic boolean isPrimitive()
ResolvedTypeisPrimitive in interface ResolvedTypepublic ResolvedType replaceTypeVariables(ResolvedTypeParameterDeclaration tpToBeReplaced, ResolvedType replaced, Map<ResolvedTypeParameterDeclaration,ResolvedType> inferredTypes)
ResolvedTypereplaceTypeVariables in interface ResolvedTypepublic boolean isReferenceType()
ResolvedTypeisReferenceType in interface ResolvedTypepublic String describe()
describe in interface ResolvedTypepublic ResolvedTypeParameterDeclaration asTypeParameter()
asTypeParameter in interface ResolvedTypepublic ResolvedTypeVariable asTypeVariable()
asTypeVariable in interface ResolvedTypepublic boolean isTypeVariable()
isTypeVariable in interface ResolvedTypepublic boolean isAssignableBy(ResolvedType other)
ResolvedTypeisAssignableBy in interface ResolvedTypepublic boolean mention(List<ResolvedTypeParameterDeclaration> typeParameters)
ResolvedTypemention in interface ResolvedTypeCopyright © 2007–2019. All rights reserved.