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, wait
arrayLevel, asArrayType, asConstraintType, asReferenceType, asTypeParameter, asTypeVariable, asWildcard, isConstraint, isNull, isReference, isVoid, isWildcard, replaceTypeVariables, replaceTypeVariables
public 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.Object
public PrimitiveType asPrimitive()
asPrimitive
in interface Type
public boolean isArray()
Type
public boolean isPrimitive()
Type
isPrimitive
in interface 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
public java.lang.String getBoxTypeQName()