| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
describe() |
boolean |
isArray()
Does this type represent an array?
|
boolean |
isAssignableBy(Type other)
This method checks if ThisType t = new OtherType() would compile.
|
boolean |
isNull()
Is this the null type?
|
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() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitarrayLevel, asArrayType, asConstraintType, asPrimitive, asReferenceType, asTypeParameter, asTypeVariable, asWildcard, isConstraint, isReference, isVoid, isWildcard, replaceTypeVariables, replaceTypeVariablespublic static final NullType INSTANCE
public boolean isArray()
Typepublic boolean isPrimitive()
TypeisPrimitive in interface Typepublic boolean isNull()
Typepublic boolean isReferenceType()
TypeisReferenceType in interface Typepublic boolean isTypeVariable()
isTypeVariable in interface Typepublic boolean isAssignableBy(Type other)
TypeisAssignableBy in interface Type