public class JavaTypes
extends java.lang.Object
Class<>
, Object
,
Cloneable
, Comparable
, Serializable
, String
, the null type, and
void
.
This class is for convenience: its field are an efficient and concise way to obtain well-known types.
Modifier and Type | Field and Description |
---|---|
static PrimitiveType |
BOOLEAN_TYPE
The
boolean type. |
static PrimitiveType |
BYTE_TYPE
The
byte type. |
static PrimitiveType |
CHAR_TYPE
The
char type. |
static GenericClassType |
CLASS_TYPE
The
java.lang.Class<?> type. |
static ReferenceType |
CLONEABLE_TYPE
The
java.lang.Cloneable type. |
static ClassOrInterfaceType |
COLLECTION_TYPE
The
java.util.Collection type. |
static GenericClassType |
COMPARABLE_TYPE
The
java.lang.Comparable type. |
static PrimitiveType |
DOUBLE_TYPE
The
double type. |
static PrimitiveType |
FLOAT_TYPE
The
float type. |
static PrimitiveType |
INT_TYPE
The
int type. |
static PrimitiveType |
LONG_TYPE
The
long type. |
static ReferenceType |
NULL_TYPE
The Null type is the lower bound of reference types and is only used in
CaptureTypeVariable |
static ClassOrInterfaceType |
OBJECT_TYPE
The
java.lang.Object type. |
private static java.util.List<PrimitiveType> |
PRIMITIVE_TYPES
The list of primitive types.
|
static ReferenceType |
SERIALIZABLE_TYPE
The
java.lang Serializable type. |
static PrimitiveType |
SHORT_TYPE
The
short type. |
static ClassOrInterfaceType |
STRING_TYPE
The
java.lang.String type. |
static VoidType |
VOID_TYPE
The void
VoidType |
Constructor and Description |
---|
JavaTypes() |
Modifier and Type | Method and Description |
---|---|
static java.util.List<PrimitiveType> |
getPrimitiveTypes()
Returns the list of (non-void) primitive types.
|
public static final PrimitiveType BOOLEAN_TYPE
boolean
type.public static final PrimitiveType BYTE_TYPE
byte
type.public static final PrimitiveType CHAR_TYPE
char
type.public static final PrimitiveType DOUBLE_TYPE
double
type.public static final PrimitiveType FLOAT_TYPE
float
type.public static final PrimitiveType INT_TYPE
int
type.public static final PrimitiveType LONG_TYPE
long
type.public static final PrimitiveType SHORT_TYPE
short
type.public static final ClassOrInterfaceType OBJECT_TYPE
java.lang.Object
type.public static final ReferenceType NULL_TYPE
CaptureTypeVariable
public static final GenericClassType CLASS_TYPE
java.lang.Class<?>
type.public static final GenericClassType COMPARABLE_TYPE
java.lang.Comparable
type.public static final ClassOrInterfaceType STRING_TYPE
java.lang.String
type.public static final ClassOrInterfaceType COLLECTION_TYPE
java.util.Collection
type.public static final ReferenceType CLONEABLE_TYPE
java.lang.Cloneable
type.public static final ReferenceType SERIALIZABLE_TYPE
java.lang Serializable
type.private static final java.util.List<PrimitiveType> PRIMITIVE_TYPES
public static java.util.List<PrimitiveType> getPrimitiveTypes()