- java.lang.Object
-
- java.lang.Enum<WinApiDataType>
-
- de.ibapl.jnhw.util.winapi.WinApiDataType
-
- All Implemented Interfaces:
Serializable,Comparable<WinApiDataType>
public enum WinApiDataType extends Enum<WinApiDataType>
The windows datatypes with their mapping to the base datatypes that we have seen so far.- Author:
- aploese
-
-
Field Summary
Fields Modifier and Type Field Description BaseDataTypebaseDataTypeWinApiDataTypepointerOf
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static WinApiDataTypevalueOf(String name)Returns the enum constant of this type with the specified name.static WinApiDataType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BOOL
public static final WinApiDataType BOOL
-
DWORD
public static final WinApiDataType DWORD
-
HANDLE
public static final WinApiDataType HANDLE
-
PHANDLE
public static final WinApiDataType PHANDLE
-
PVOID
public static final WinApiDataType PVOID
-
ULONG_PTR
public static final WinApiDataType ULONG_PTR
-
WCHAR
public static final WinApiDataType WCHAR
-
-
Field Detail
-
baseDataType
public final BaseDataType baseDataType
-
pointerOf
public final WinApiDataType pointerOf
-
-
Method Detail
-
values
public static WinApiDataType[] 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 (WinApiDataType c : WinApiDataType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static WinApiDataType 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
-
-