- java.lang.Object
-
- java.lang.Enum<BaseDataType>
-
- de.ibapl.jnhw.common.datatypes.BaseDataType
-
- All Implemented Interfaces:
Serializable,Comparable<BaseDataType>
public enum BaseDataType extends Enum<BaseDataType>
- Author:
- aploese
-
-
Field Summary
Fields Modifier and Type Field Description static int__SIZE_OF_DOUBLEstatic int__SIZE_OF_FLOATstatic int__SIZE_OF_LONGstatic int__SIZE_OF_LONG_DOUBLEstatic int__SIZE_OF_POINTERAlignmentALIGN_IN_STRUCTAlignmentALIGN_OFIntegerSIZE_OFBooleanUNSIGNED
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BaseDataTypegetSigned_Long_Mapping()static BaseDataTypegetUnsigned_Long_Mapping()static BaseDataTypevalueOf(String name)Returns the enum constant of this type with the specified name.static BaseDataType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
int8_t
public static final BaseDataType int8_t
-
uint8_t
public static final BaseDataType uint8_t
-
int16_t
public static final BaseDataType int16_t
-
uint16_t
public static final BaseDataType uint16_t
-
int32_t
public static final BaseDataType int32_t
-
uint32_t
public static final BaseDataType uint32_t
-
_long
public static final BaseDataType _long
-
_unsigned_long
public static final BaseDataType _unsigned_long
-
_float
public static final BaseDataType _float
-
_double
public static final BaseDataType _double
-
_long_double
public static final BaseDataType _long_double
-
int64_t
public static final BaseDataType int64_t
-
uint64_t
public static final BaseDataType uint64_t
-
struct
public static final BaseDataType struct
-
union
public static final BaseDataType union
-
array
public static final BaseDataType array
-
intptr_t
public static final BaseDataType intptr_t
-
uintptr_t
public static final BaseDataType uintptr_t
-
function
public static final BaseDataType function
-
pointer
public static final BaseDataType pointer
the infamous void*
-
-
Field Detail
-
UNSIGNED
public final Boolean UNSIGNED
-
ALIGN_OF
public final Alignment ALIGN_OF
-
ALIGN_IN_STRUCT
public final Alignment ALIGN_IN_STRUCT
-
SIZE_OF
public final Integer SIZE_OF
-
__SIZE_OF_POINTER
public static final int __SIZE_OF_POINTER
-
__SIZE_OF_LONG
public static final int __SIZE_OF_LONG
-
__SIZE_OF_FLOAT
public static final int __SIZE_OF_FLOAT
-
__SIZE_OF_DOUBLE
public static final int __SIZE_OF_DOUBLE
-
__SIZE_OF_LONG_DOUBLE
public static final int __SIZE_OF_LONG_DOUBLE
-
-
Method Detail
-
values
public static BaseDataType[] 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 (BaseDataType c : BaseDataType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BaseDataType valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getSigned_Long_Mapping
public static BaseDataType getSigned_Long_Mapping()
-
getUnsigned_Long_Mapping
public static BaseDataType getUnsigned_Long_Mapping()
-
-