|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<NativeType>
org.jruby.ext.ffi.NativeType
public enum NativeType
Native types
Enum Constant Summary | |
---|---|
ARRAY
|
|
BOOL
|
|
BUFFER_IN
|
|
BUFFER_INOUT
|
|
BUFFER_OUT
|
|
CHAR
|
|
CHAR_ARRAY
|
|
DOUBLE
|
|
FLOAT
|
|
INT
|
|
LONG
A C long type |
|
LONG_LONG
|
|
MAPPED
|
|
POINTER
|
|
RBXSTRING
A Rubinus :string arg - copies data both ways, and nul terminates |
|
SHORT
|
|
STRING
An immutable string. |
|
STRUCT
|
|
UCHAR
|
|
UINT
|
|
ULONG
A C unsigned long |
|
ULONG_LONG
|
|
USHORT
|
|
VARARGS
|
|
VOID
|
Method Summary | |
---|---|
NativeType |
getNativeType()
|
int |
intValue()
|
static NativeType |
valueOf(int type)
|
static NativeType |
valueOf(IRubyObject type)
|
static NativeType |
valueOf(java.lang.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 BOOL
public static final NativeType CHAR
public static final NativeType UCHAR
public static final NativeType SHORT
public static final NativeType USHORT
public static final NativeType INT
public static final NativeType UINT
public static final NativeType LONG_LONG
public static final NativeType ULONG_LONG
public static final NativeType LONG
public static final NativeType ULONG
public static final NativeType FLOAT
public static final NativeType DOUBLE
public static final NativeType POINTER
public static final NativeType BUFFER_IN
public static final NativeType BUFFER_OUT
public static final NativeType BUFFER_INOUT
public static final NativeType CHAR_ARRAY
public static final NativeType STRING
public static final NativeType RBXSTRING
public static final NativeType VARARGS
public static final NativeType ARRAY
public static final NativeType STRUCT
public static final NativeType MAPPED
Method Detail |
---|
public static NativeType[] values()
for (NativeType c : NativeType.values()) System.out.println(c);
public static NativeType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic final int intValue()
public final NativeType getNativeType()
getNativeType
in interface NativeParam
public static final NativeType valueOf(int type)
public static final NativeType valueOf(IRubyObject type)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |