| Constructor and Description |
|---|
TypeVariable(TypeParameterDeclaration typeParameter) |
| Modifier and Type | Method and Description |
|---|---|
TypeParameterDeclaration |
asTypeParameter() |
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 |
replaceParam(String name,
Type replaced) |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitarrayLevel, asArrayType, asPrimitive, asReferenceType, asWildcard, isNull, isReference, isVoid, isWildcard, replaceParampublic TypeVariable(TypeParameterDeclaration typeParameter)
public String qualifiedName()
public boolean isArray()
Typepublic boolean isPrimitive()
TypeisPrimitive in interface Typepublic Type replaceParam(String name, Type replaced)
replaceParam in interface Typepublic boolean isReferenceType()
TypeisReferenceType in interface Typepublic TypeParameterDeclaration asTypeParameter()
asTypeParameter in interface Typepublic boolean isTypeVariable()
isTypeVariable in interface Typepublic boolean isAssignableBy(Type other)
TypeisAssignableBy in interface TypeCopyright © 2016. All rights reserved.