Top Description Fields Constructors Methods
com.sun.jna

public Class NativeMappedConverter

extends Object
implements TypeConverter
Class Inheritance
All Implemented Interfaces
com.sun.jna.TypeConverter, com.sun.jna.ToNativeConverter, com.sun.jna.FromNativeConverter

Provides type conversion for instances of NativeMapped.

Field Summary

Modifier and TypeField and Description
private NativeMapped
private Class<T>
private Class<T>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public NativeMapped
public Object
fromNative(Object nativeValue, FromNativeContext context)

Implements com.sun.jna.FromNativeConverter.fromNative.

Convert the given native object into its Java representation using the given context.
public Class<T>
nativeType()

Implements com.sun.jna.FromNativeConverter.nativeType, com.sun.jna.ToNativeConverter.nativeType.

Indicate the native type used by this converter.
public Object
toNative(Object value, ToNativeContext context)

Implements com.sun.jna.ToNativeConverter.toNative.

Convert a Java type to an appropriate native type.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

instanceback to summary
private NativeMapped instance
nativeTypeback to summary
private Class<T> nativeType
typeback to summary
private Class<T> type

Constructor Detail

NativeMappedConverterback to summary
public NativeMappedConverter(Class<T> type)

Method Detail

defaultValueback to summary
public NativeMapped defaultValue()
fromNativeback to summary
public Object fromNative(Object nativeValue, FromNativeContext context)

Implements com.sun.jna.FromNativeConverter.fromNative.

Doc from com.sun.jna.FromNativeConverter.fromNative.

Convert the given native object into its Java representation using the given context.

nativeTypeback to summary
public Class<T> nativeType()

Implements com.sun.jna.FromNativeConverter.nativeType, com.sun.jna.ToNativeConverter.nativeType.

Doc from com.sun.jna.FromNativeConverter.nativeType.

Indicate the native type used by this converter.

toNativeback to summary
public Object toNative(Object value, ToNativeContext context)

Implements com.sun.jna.ToNativeConverter.toNative.

Doc from com.sun.jna.ToNativeConverter.toNative.

Convert a Java type to an appropriate native type. The new type must be one of the following classes: