Package com.sun.jna
Interface TypeMapper
-
- All Known Implementing Classes:
DefaultTypeMapper
,W32APITypeMapper
public interface TypeMapper
Provides converters for conversion to and from native types.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FromNativeConverter
getFromNativeConverter(Class<?> javaType)
Return theFromNativeConverter
appropriate for the given Java class.ToNativeConverter
getToNativeConverter(Class<?> javaType)
Return theToNativeConverter
appropriate for the given Java class.
-
-
-
Method Detail
-
getFromNativeConverter
FromNativeConverter getFromNativeConverter(Class<?> javaType)
Return theFromNativeConverter
appropriate for the given Java class.- Parameters:
javaType
- Java class representation of the native type.- Returns:
- Converter from the native-compatible type.
-
getToNativeConverter
ToNativeConverter getToNativeConverter(Class<?> javaType)
Return theToNativeConverter
appropriate for the given Java class.- Parameters:
javaType
- Java class representation of the native type.- Returns:
- Converter to the native-compatible type.
-
-