org.python.modules.jffi
Enum NativeType
java.lang.Object
java.lang.Enum<NativeType>
org.python.modules.jffi.NativeType
- All Implemented Interfaces:
- Serializable, Comparable<NativeType>
public enum NativeType
- extends Enum<NativeType>
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're declared. |
VOID
public static final NativeType VOID
BOOL
public static final NativeType BOOL
BYTE
public static final NativeType BYTE
UBYTE
public static final NativeType UBYTE
SHORT
public static final NativeType SHORT
USHORT
public static final NativeType USHORT
INT
public static final NativeType INT
UINT
public static final NativeType UINT
LONGLONG
public static final NativeType LONGLONG
ULONGLONG
public static final NativeType ULONGLONG
LONG
public static final NativeType LONG
ULONG
public static final NativeType ULONG
FLOAT
public static final NativeType FLOAT
DOUBLE
public static final NativeType DOUBLE
POINTER
public static final NativeType POINTER
STRING
public static final NativeType STRING
ARRAY
public static final NativeType ARRAY
STRUCT
public static final NativeType STRUCT
values
public static final NativeType[] values()
- Returns an array containing the constants of this enum type, in
the order they're declared. This method may be used to iterate
over the constants as follows:
for(NativeType c : NativeType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they're declared
valueOf
public static NativeType 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 name
Jython homepage