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, wait
arrayLevel, asArrayType, asConstraintType, asPrimitive, asReferenceType, asUnionType, asWildcard, isConstraint, isInferenceVariable, isNull, isNumericType, isPrimitive, isReference, isUnionType, isVoid, isWildcard, replaceTypeVariables
public ResolvedTypeVariable(ResolvedTypeParameterDeclaration typeParameter)
public String qualifiedName()
public boolean isArray()
isArray
in interface ResolvedType
public ResolvedType replaceTypeVariables(ResolvedTypeParameterDeclaration tpToBeReplaced, ResolvedType replaced, Map<ResolvedTypeParameterDeclaration,ResolvedType> inferredTypes)
ResolvedType
replaceTypeVariables
in interface ResolvedType
public boolean isReferenceType()
ResolvedType
isReferenceType
in interface ResolvedType
public String describe()
describe
in interface ResolvedType
public ResolvedTypeParameterDeclaration asTypeParameter()
asTypeParameter
in interface ResolvedType
public ResolvedTypeVariable asTypeVariable()
asTypeVariable
in interface ResolvedType
public boolean isTypeVariable()
isTypeVariable
in interface ResolvedType
public boolean isAssignableBy(ResolvedType other)
ResolvedType
isAssignableBy
in interface ResolvedType
public boolean mention(List<ResolvedTypeParameterDeclaration> typeParameters)
ResolvedType
mention
in interface ResolvedType
public ResolvedType erasure()
erasure
in interface ResolvedType
public ResolvedType solveGenericTypes(Context context)
solveGenericTypes
in interface ResolvedType
public String toDescriptor()
toDescriptor
in interface ResolvedType
Copyright © 2007–2023. All rights reserved.