Top Description Methods
com.sun.jna

public Interface NativeMapped

Known Direct Implementers
com.sun.jna.PointerType, com.sun.jna.examples.unix.X11.XID, com.sun.jna.IntegerType

Provide conversion for a Java type to and from a native type. Function and Structure will use this interface to determine how to map a given Java object into a native type.

Implementations of this interface must provide a no-args constructor.

Author
wmeissner

Method Summary

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

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

public Class<T>
nativeType()

Indicate the native type used by this converter.

public Object
toNative()

Convert this object into a supported native type.

Method Detail

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

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

nativeTypeback to summary
public Class<T> nativeType()

Indicate the native type used by this converter.

toNativeback to summary
public Object toNative()

Convert this object into a supported native type.