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, isWildcardType
annotation, annotations, annotations, hasAnnotation, hasAnnotation, repeatableAnnotation
java.lang.String name()
PrimitiveType.PrimitiveKind primitiveKind()
default boolean isBoolean()
boolean
.boolean
default boolean isByte()
byte
.byte
default boolean isShort()
short
.short
default boolean isInt()
int
.int
default boolean isLong()
long
.long
default boolean isFloat()
float
.float
default boolean isDouble()
double
.double
default boolean isChar()
char
.char
default Type.Kind kind()
Type
default PrimitiveType asPrimitive()
Type
asPrimitive
in interface Type
null