Package com.sun.jna
Class NativeMappedConverter
java.lang.Object
com.sun.jna.NativeMappedConverter
- All Implemented Interfaces:
FromNativeConverter
,ToNativeConverter
,TypeConverter
Provides type conversion for instances of
NativeMapped
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfromNative
(Object nativeValue, FromNativeContext context) Convert the given native object into its Java representation using the given context.static NativeMappedConverter
getInstance
(Class<?> cls) Class<?>
Indicate the native type used by this converter.toNative
(Object value, ToNativeContext context) Convert a Java type to an appropriate native type.
-
Constructor Details
-
NativeMappedConverter
-
-
Method Details
-
getInstance
-
defaultValue
-
fromNative
Description copied from interface:FromNativeConverter
Convert the given native object into its Java representation using the given context.- Specified by:
fromNative
in interfaceFromNativeConverter
-
nativeType
Description copied from interface:FromNativeConverter
Indicate the native type used by this converter.- Specified by:
nativeType
in interfaceFromNativeConverter
- Specified by:
nativeType
in interfaceToNativeConverter
-
toNative
Description copied from interface:ToNativeConverter
Convert a Java type to an appropriate native type. The new type must be one of the following classes:Pointer
- Boolean
- Byte
- Short
- Character
- Integer
NativeLong
- Long
- Float
- Double
Structure
- String
WString
Buffer
(unsupported in direct mode)- primitive array (unsupported in direct mode)
- Specified by:
toNative
in interfaceToNativeConverter
-