Package randoop.types
Class JavaTypes
- java.lang.Object
-
- randoop.types.JavaTypes
-
public class JavaTypes extends Object
Constants for non-JDK Java types. Include primitive types,Class<>
,Object
,Cloneable
,Comparable
,Serializable
,String
, the null type, andvoid
.
-
-
Field Summary
Fields Modifier and Type Field Description static PrimitiveType
BOOLEAN_TYPE
Theboolean
type.static PrimitiveType
BYTE_TYPE
Thebyte
type.static PrimitiveType
CHAR_TYPE
Thechar
type.static GenericClassType
CLASS_TYPE
Thejava.lang.Class<?>
type.static ReferenceType
CLONEABLE_TYPE
Thejava.lang.Cloneable
type.static ClassOrInterfaceType
COLLECTION_TYPE
Thejava.util.Collection
type.static GenericClassType
COMPARABLE_TYPE
Thejava.lang.Comparable
type.static PrimitiveType
DOUBLE_TYPE
Thedouble
type.static PrimitiveType
FLOAT_TYPE
Thefloat
type.static PrimitiveType
INT_TYPE
Theint
type.static PrimitiveType
LONG_TYPE
Thelong
type.static ReferenceType
NULL_TYPE
The Null type is the lower bound of reference types and is only used inCaptureTypeVariable
static ClassOrInterfaceType
OBJECT_TYPE
Thejava.lang.Object
type.private static List<PrimitiveType>
PRIMITIVE_TYPES
The list of primitive types.static ReferenceType
SERIALIZABLE_TYPE
Thejava.lang Serializable
type.static PrimitiveType
SHORT_TYPE
Theshort
type.static ClassOrInterfaceType
STRING_TYPE
Thejava.lang.String
type.static VoidType
VOID_TYPE
The voidVoidType
-
Constructor Summary
Constructors Constructor Description JavaTypes()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<PrimitiveType>
getPrimitiveTypes()
Returns the list of (non-void) primitive types.
-
-
-
Field Detail
-
BOOLEAN_TYPE
public static final PrimitiveType BOOLEAN_TYPE
Theboolean
type.
-
BYTE_TYPE
public static final PrimitiveType BYTE_TYPE
Thebyte
type.
-
CHAR_TYPE
public static final PrimitiveType CHAR_TYPE
Thechar
type.
-
DOUBLE_TYPE
public static final PrimitiveType DOUBLE_TYPE
Thedouble
type.
-
FLOAT_TYPE
public static final PrimitiveType FLOAT_TYPE
Thefloat
type.
-
INT_TYPE
public static final PrimitiveType INT_TYPE
Theint
type.
-
LONG_TYPE
public static final PrimitiveType LONG_TYPE
Thelong
type.
-
SHORT_TYPE
public static final PrimitiveType SHORT_TYPE
Theshort
type.
-
OBJECT_TYPE
public static final ClassOrInterfaceType OBJECT_TYPE
Thejava.lang.Object
type.
-
NULL_TYPE
public static final ReferenceType NULL_TYPE
The Null type is the lower bound of reference types and is only used inCaptureTypeVariable
-
CLASS_TYPE
public static final GenericClassType CLASS_TYPE
Thejava.lang.Class<?>
type.
-
COMPARABLE_TYPE
public static final GenericClassType COMPARABLE_TYPE
Thejava.lang.Comparable
type.
-
STRING_TYPE
public static final ClassOrInterfaceType STRING_TYPE
Thejava.lang.String
type.
-
COLLECTION_TYPE
public static final ClassOrInterfaceType COLLECTION_TYPE
Thejava.util.Collection
type.
-
CLONEABLE_TYPE
public static final ReferenceType CLONEABLE_TYPE
Thejava.lang.Cloneable
type.
-
SERIALIZABLE_TYPE
public static final ReferenceType SERIALIZABLE_TYPE
Thejava.lang Serializable
type.
-
PRIMITIVE_TYPES
private static final List<PrimitiveType> PRIMITIVE_TYPES
The list of primitive types.
-
-
Method Detail
-
getPrimitiveTypes
public static List<PrimitiveType> getPrimitiveTypes()
Returns the list of (non-void) primitive types.- Returns:
- the list of (non-void) primitive types
-
-