Package com.sun.jna
Klasse NativeMappedConverter
java.lang.Object
com.sun.jna.NativeMappedConverter
- Alle implementierten Schnittstellen:
FromNativeConverter
,ToNativeConverter
,TypeConverter
Provides type conversion for instances of
NativeMapped
.-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungfromNative
(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.
-
Konstruktordetails
-
NativeMappedConverter
-
-
Methodendetails
-
getInstance
-
defaultValue
-
fromNative
Beschreibung aus Schnittstelle kopiert:FromNativeConverter
Convert the given native object into its Java representation using the given context.- Angegeben von:
fromNative
in SchnittstelleFromNativeConverter
-
nativeType
Beschreibung aus Schnittstelle kopiert:FromNativeConverter
Indicate the native type used by this converter.- Angegeben von:
nativeType
in SchnittstelleFromNativeConverter
- Angegeben von:
nativeType
in SchnittstelleToNativeConverter
-
toNative
Beschreibung aus Schnittstelle kopiert: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)
- Angegeben von:
toNative
in SchnittstelleToNativeConverter
-