public interface PrimitiveType extends Type
| Modifier and Type | Interface and Description |
|---|---|
static class |
PrimitiveType.PrimitiveKind |
| Modifier and Type | Method and Description |
|---|---|
default PrimitiveType |
asPrimitive()
Returns this type as a primitive type.
|
default boolean |
isBoolean()
Returns whether this primitive type is
boolean. |
default boolean |
isByte()
Returns whether this primitive type is
byte. |
default boolean |
isChar()
Returns whether this primitive type is
char. |
default boolean |
isDouble()
Returns whether this primitive type is
double. |
default boolean |
isFloat()
Returns whether this primitive type is
float. |
default boolean |
isInt()
Returns whether this primitive type is
int. |
default boolean |
isLong()
Returns whether this primitive type is
long. |
default boolean |
isShort()
Returns whether this primitive type is
short. |
default Type.Kind |
kind()
Returns the kind of this type.
|
java.lang.String |
name()
Returns the name of this primitive type.
|
PrimitiveType.PrimitiveKind |
primitiveKind()
Returns the kind of this primitive type.
|
asArray, asClass, asDeclaration, asParameterizedType, asType, asTypeVariable, asVoid, asWildcardType, isArray, isClass, isDeclaration, isParameterizedType, isPrimitive, isType, isTypeVariable, isVoid, isWildcardTypeannotation, annotations, annotations, hasAnnotation, hasAnnotation, repeatableAnnotationjava.lang.String name()
PrimitiveType.PrimitiveKind primitiveKind()
default boolean isBoolean()
boolean.booleandefault boolean isByte()
byte.bytedefault boolean isShort()
short.shortdefault boolean isInt()
int.intdefault boolean isLong()
long.longdefault boolean isFloat()
float.floatdefault boolean isDouble()
double.doubledefault boolean isChar()
char.chardefault Type.Kind kind()
Typedefault PrimitiveType asPrimitive()
TypeasPrimitive in interface Typenull