Package randoop.types

Class JavaTypes


  • public class JavaTypes
    extends Object
    Constants for non-JDK Java types. Include primitive types, Class<>, Object, Cloneable, Comparable, Serializable, String, the null type, and void.
    • Field Detail

      • BOOLEAN_TYPE

        public static final PrimitiveType BOOLEAN_TYPE
        The boolean type.
      • BYTE_TYPE

        public static final PrimitiveType BYTE_TYPE
        The byte type.
      • CHAR_TYPE

        public static final PrimitiveType CHAR_TYPE
        The char type.
      • DOUBLE_TYPE

        public static final PrimitiveType DOUBLE_TYPE
        The double type.
      • FLOAT_TYPE

        public static final PrimitiveType FLOAT_TYPE
        The float type.
      • INT_TYPE

        public static final PrimitiveType INT_TYPE
        The int type.
      • LONG_TYPE

        public static final PrimitiveType LONG_TYPE
        The long type.
      • SHORT_TYPE

        public static final PrimitiveType SHORT_TYPE
        The short type.
      • CLASS_TYPE

        public static final GenericClassType CLASS_TYPE
        The java.lang.Class<?> type.
      • COMPARABLE_TYPE

        public static final GenericClassType COMPARABLE_TYPE
        The java.lang.Comparable type.
      • COLLECTION_TYPE

        public static final ClassOrInterfaceType COLLECTION_TYPE
        The java.util.Collection type.
      • CLONEABLE_TYPE

        public static final ReferenceType CLONEABLE_TYPE
        The java.lang.Cloneable type.
      • SERIALIZABLE_TYPE

        public static final ReferenceType SERIALIZABLE_TYPE
        The java.lang Serializable type.
      • PRIMITIVE_TYPES

        private static final List<PrimitiveType> PRIMITIVE_TYPES
        The list of primitive types.
    • Constructor Detail

      • JavaTypes

        public JavaTypes()
    • Method Detail

      • getPrimitiveTypes

        public static List<PrimitiveType> getPrimitiveTypes()
        Returns the list of (non-void) primitive types.
        Returns:
        the list of (non-void) primitive types