| Constructor and Description |
|---|
TypeVariable(TypeParameterDeclaration typeParameter) |
| Modifier and Type | Method and Description |
|---|---|
TypeParameterDeclaration |
asTypeParameter() |
TypeVariable |
asTypeVariable() |
String |
describe() |
boolean |
equals(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() |
String |
qualifiedName() |
Type |
replaceTypeVariables(TypeParameterDeclaration tpToBeReplaced,
Type replaced,
Map<TypeParameterDeclaration,Type> inferredTypes)
Replace all variables referring to the given TypeParameter with the given value.
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitarrayLevel, asArrayType, asPrimitive, asReferenceType, asWildcard, isNull, isReference, isVoid, isWildcard, replaceTypeVariablespublic TypeVariable(TypeParameterDeclaration typeParameter)
public String qualifiedName()
public boolean isArray()
Typepublic boolean isPrimitive()
TypeisPrimitive in interface Typepublic Type replaceTypeVariables(TypeParameterDeclaration tpToBeReplaced, Type replaced, 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 TypeCopyright © 2016. All rights reserved.