|
JNA API> 3.2.7 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.jna.NativeMappedConverter
public class NativeMappedConverter
Provides type conversion for instances of NativeMapped
.
Constructor Summary | |
---|---|
NativeMappedConverter(Class type)
|
Method Summary | |
---|---|
NativeMapped |
defaultValue()
|
Object |
fromNative(Object nativeValue,
FromNativeContext context)
Convert the given native object into its Java representation using the given context. |
static NativeMappedConverter |
getInstance(Class cls)
|
Class |
nativeType()
Indicate the native type used by this converter. |
Object |
toNative(Object value,
ToNativeContext context)
Convert a Java type to an appropriate native type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NativeMappedConverter(Class type)
Method Detail |
---|
public static NativeMappedConverter getInstance(Class cls)
public NativeMapped defaultValue()
public Object fromNative(Object nativeValue, FromNativeContext context)
FromNativeConverter
fromNative
in interface FromNativeConverter
public Class nativeType()
FromNativeConverter
nativeType
in interface FromNativeConverter
nativeType
in interface ToNativeConverter
public Object toNative(Object value, ToNativeContext context)
ToNativeConverter
Pointer
NativeLong
Structure
WString
Buffer
toNative
in interface ToNativeConverter
|
JNA API> 3.2.7 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |