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, wait
arrayLevel, asArrayType, asConstraintType, asPrimitive, asReferenceType, asTypeParameter, asTypeVariable, asWildcard, isConstraint, isReference, isVoid, isWildcard, replaceTypeVariables, replaceTypeVariables
public static final NullType INSTANCE
public boolean isArray()
Type
public boolean isPrimitive()
Type
isPrimitive
in interface Type
public boolean isNull()
Type
public boolean isReferenceType()
Type
isReferenceType
in interface Type
public boolean isTypeVariable()
isTypeVariable
in interface Type
public boolean isAssignableBy(Type other)
Type
isAssignableBy
in interface Type