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) |
ResolvedType |
erasure() |
int |
hashCode() |
boolean |
isArray() |
boolean |
isAssignableBy(ResolvedType other)
This method checks if ThisType t = new OtherType() would compile.
|
boolean |
isReferenceType()
Can this be seen as a ReferenceTypeUsage?
|
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.
|
ResolvedType |
solveGenericTypes(Context context) |
String |
toDescriptor() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitarrayLevel, asArrayType, asConstraintType, asPrimitive, asReferenceType, asUnionType, asWildcard, isConstraint, isInferenceVariable, isNull, isNumericType, isPrimitive, isReference, isUnionType, isVoid, isWildcard, replaceTypeVariablespublic ResolvedTypeVariable(ResolvedTypeParameterDeclaration typeParameter)
public String qualifiedName()
public boolean isArray()
isArray 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 ResolvedTypepublic ResolvedType erasure()
erasure in interface ResolvedTypepublic ResolvedType solveGenericTypes(Context context)
solveGenericTypes in interface ResolvedTypepublic String toDescriptor()
toDescriptor in interface ResolvedTypeCopyright © 2007–2024. All rights reserved.