Enum Class PrimitiveKind
- All Implemented Interfaces:
Serializable,Comparable<PrimitiveKind>,Constable
Enumeration of all primitive types.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBoolean.Unsigned byte.Character.Double-precision floating-point number (8 bytes long).A signed integer sufficiently large to hold a pointer.Signed 16-bit integer.Signed 32-bit integer.Signed 64-bit integer.Signed byte.Single-precision floating-point number (4 bytes long).String.An unsigned integer sufficiently large to hold a pointer.Unsigned 16-bit integer.Unsigned 32-bit integer.Unsigned 64-bit integer.Void. -
Method Summary
Modifier and TypeMethodDescriptiontypeName()Gets the name of the primitive.static PrimitiveKindReturns the enum constant of this class with the specified name.static PrimitiveKind[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
VOID
Void.Either used to represent the return type of functions not returning anything, or for pointer types pointing to an unknown/opaque data structure.
-
BOOL
Boolean. -
CHAR
Character.A character is a UTF-16 code unit, i.e., it is 2 bytes long.
-
SBYTE
Signed byte. -
BYTE
Unsigned byte. -
INT16
Signed 16-bit integer. -
UINT16
Unsigned 16-bit integer. -
INT32
Signed 32-bit integer. -
UINT32
Unsigned 32-bit integer. -
INT64
Signed 64-bit integer. -
UINT64
Unsigned 64-bit integer. -
SINGLE
Single-precision floating-point number (4 bytes long). -
DOUBLE
Double-precision floating-point number (8 bytes long). -
STRING
String.Usually, the string is encoded in UTF-16. Some string constants are indicated to be ANSI-encoded, i.e., it uses a byte-wise encoding.
-
INT_PTR
A signed integer sufficiently large to hold a pointer. -
UINT_PTR
An unsigned integer sufficiently large to hold a pointer.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
typeName
-