Constructor and Description |
---|
TypeVariable(TypeParameterDeclaration typeParameter) |
Modifier and Type | Method and Description |
---|---|
TypeParameterDeclaration |
asTypeParameter() |
TypeVariable |
asTypeVariable() |
java.lang.String |
describe() |
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
boolean |
isArray()
Does this type represent an array?
|
boolean |
isAssignableBy(Type 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() |
java.lang.String |
qualifiedName() |
Type |
replaceTypeVariables(TypeParameterDeclaration tpToBeReplaced,
Type replaced,
java.util.Map<TypeParameterDeclaration,Type> inferredTypes)
Replace all variables referring to the given TypeParameter with the given value.
|
java.lang.String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
arrayLevel, asArrayType, asConstraintType, asPrimitive, asReferenceType, asWildcard, isConstraint, isNull, isReference, isVoid, isWildcard, replaceTypeVariables
public TypeVariable(TypeParameterDeclaration typeParameter)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String qualifiedName()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean isArray()
Type
public boolean isPrimitive()
Type
isPrimitive
in interface Type
public Type replaceTypeVariables(TypeParameterDeclaration tpToBeReplaced, Type replaced, java.util.Map<TypeParameterDeclaration,Type> inferredTypes)
Type
replaceTypeVariables
in interface Type
public boolean isReferenceType()
Type
isReferenceType
in interface Type
public TypeParameterDeclaration asTypeParameter()
asTypeParameter
in interface Type
public TypeVariable asTypeVariable()
asTypeVariable
in interface Type
public boolean isTypeVariable()
isTypeVariable
in interface Type
public boolean isAssignableBy(Type other)
Type
isAssignableBy
in interface Type