|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<NativeType>
jnr.ffi.NativeType
public enum NativeType
NativeType defines the primitive types supported internally.
Usually you will not use these types directly, and should instead use the standard
types such as Pointer
, NativeLong
, or any of the normal java
types such as int
, short
.
All other types are defined in terms of these primitive types.
Enum Constant Summary | |
---|---|
ADDRESS
Native memory address. |
|
DOUBLE
Double precision floating point. |
|
FLOAT
Single precision floating point. |
|
SCHAR
Signed char. |
|
SINT
Signed integer. |
|
SLONG
Signed long integer. |
|
SLONGLONG
Signed long long integer. |
|
SSHORT
Signed short integer. |
|
STRUCT
Native struct type |
|
UCHAR
Unsigned char. |
|
UINT
Unsigned integer. |
|
ULONG
Unsigned long integer. |
|
ULONGLONG
Unsigned long long integer. |
|
USHORT
Unsigned short integer. |
|
VOID
Void type. |
Method Summary | |
---|---|
static NativeType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static NativeType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final NativeType VOID
public static final NativeType SCHAR
public static final NativeType UCHAR
public static final NativeType SSHORT
public static final NativeType USHORT
public static final NativeType SINT
public static final NativeType UINT
public static final NativeType SLONG
public static final NativeType ULONG
public static final NativeType SLONGLONG
public static final NativeType ULONGLONG
public static final NativeType FLOAT
public static final NativeType DOUBLE
public static final NativeType STRUCT
public static final NativeType ADDRESS
Method Detail |
---|
public static NativeType[] values()
for (NativeType c : NativeType.values()) System.out.println(c);
public static NativeType valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |