com.sun.jna

Interface NativeMapped

public interface NativeMapped

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
ObjectfromNative(Object nativeValue, FromNativeContext context)
Convert the given native object into its Java representation using the given context.
ClassnativeType()
Indicate the native type used by this converter.
ObjecttoNative()
Convert this object into a supported native type.

Method Detail

fromNative

public Object fromNative(Object nativeValue, FromNativeContext context)
Convert the given native object into its Java representation using the given context.

nativeType

public Class nativeType()
Indicate the native type used by this converter.

toNative

public Object toNative()
Convert this object into a supported native type.
Copyright © 2007-2009 Timothy Wall. All Rights Reserved.