| 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, waitarrayLevel, asArrayType, asConstraintType, asPrimitive, asReferenceType, asWildcard, isConstraint, isNull, isReference, isVoid, isWildcard, replaceTypeVariablespublic TypeVariable(TypeParameterDeclaration typeParameter)
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String qualifiedName()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean isArray()
Typepublic boolean isPrimitive()
TypeisPrimitive in interface Typepublic Type replaceTypeVariables(TypeParameterDeclaration tpToBeReplaced, Type replaced, java.util.Map<TypeParameterDeclaration,Type> inferredTypes)
TypereplaceTypeVariables in interface Typepublic boolean isReferenceType()
TypeisReferenceType in interface Typepublic TypeParameterDeclaration asTypeParameter()
asTypeParameter in interface Typepublic TypeVariable asTypeVariable()
asTypeVariable in interface Typepublic boolean isTypeVariable()
isTypeVariable in interface Typepublic boolean isAssignableBy(Type other)
TypeisAssignableBy in interface Type