| Modifier and Type | Field and Description |
|---|---|
static java.util.List<PrimitiveType> |
ALL |
static PrimitiveType |
BOOLEAN |
static PrimitiveType |
BYTE |
static PrimitiveType |
CHAR |
static PrimitiveType |
DOUBLE |
static PrimitiveType |
FLOAT |
static PrimitiveType |
INT |
static PrimitiveType |
LONG |
static PrimitiveType |
SHORT |
| Modifier and Type | Method and Description |
|---|---|
PrimitiveType |
asPrimitive() |
static Type |
byName(java.lang.String name) |
java.lang.String |
describe() |
java.lang.String |
getBoxTypeQName() |
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 |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitarrayLevel, asArrayType, asConstraintType, asReferenceType, asTypeParameter, asTypeVariable, asWildcard, isConstraint, isNull, isReference, isVoid, isWildcard, replaceTypeVariables, replaceTypeVariablespublic static final PrimitiveType BYTE
public static final PrimitiveType SHORT
public static final PrimitiveType CHAR
public static final PrimitiveType INT
public static final PrimitiveType LONG
public static final PrimitiveType BOOLEAN
public static final PrimitiveType FLOAT
public static final PrimitiveType DOUBLE
public static final java.util.List<PrimitiveType> ALL
public static Type byName(java.lang.String name)
public java.lang.String toString()
toString in class java.lang.Objectpublic PrimitiveType asPrimitive()
asPrimitive in interface Typepublic boolean isArray()
Typepublic boolean isPrimitive()
TypeisPrimitive in interface Typepublic boolean isReferenceType()
TypeisReferenceType in interface Typepublic boolean isTypeVariable()
isTypeVariable in interface Typepublic boolean isAssignableBy(Type other)
TypeisAssignableBy in interface Typepublic java.lang.String getBoxTypeQName()