Enum CLTypeData

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<CLTypeData>

    public enum CLTypeData
    extends java.lang.Enum<CLTypeData>
    Casper CLType definitions and type mappings

    All types must be listed and mapped here.

    Since:
    0.0.1
    See Also:
    StoredValue
    • Method Detail

      • values

        public static CLTypeData[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (CLTypeData c : CLTypeData.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static CLTypeData valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getTypeBySerializationTag

        public static CLTypeData getTypeBySerializationTag​(byte serializationTag)
                                                    throws NoSuchTypeException
        Retrieve CLType by its serialization tag
        Parameters:
        serializationTag - the serialization tag to find
        Returns:
        the requested CLTypeData
        Throws:
        NoSuchTypeException - raised when the clType is not valid/found
      • getClassByName

        public static java.lang.Class<?> getClassByName​(java.lang.String name)
                                                 throws NoSuchTypeException
        Retrieve CLValue implementation class from CLType name
        Parameters:
        name - the type's name
        Returns:
        the Class object holding the requested AbstractCLValue
        Throws:
        NoSuchTypeException - raised when the clType is not valid/found
      • getCLTypeClassByName

        public static java.lang.Class<?> getCLTypeClassByName​(java.lang.String name)
                                                       throws NoSuchTypeException
        Retrieve CLType class from CLType name
        Parameters:
        name - the type's name
        Returns:
        the Class object holding the requested AbstractCLType
        Throws:
        NoSuchTypeException - raised when the clType is not valid/found
      • getClTypeName

        public java.lang.String getClTypeName()
      • getSerializationTag

        public byte getSerializationTag()
      • getClazz

        public java.lang.Class<? extends AbstractCLValue<?,​?>> getClazz()
      • getClTypeClass

        public java.lang.Class<? extends AbstractCLType> getClTypeClass()