Package com.sun.jna.platform
Class EnumConverter<T extends Enum<T>>
java.lang.Object
com.sun.jna.platform.EnumConverter<T>
- Type Parameters:
- T- the enum type
- All Implemented Interfaces:
- FromNativeConverter,- ToNativeConverter,- TypeConverter
A 
TypeConverter that maps an integer enum value to
 an actual Java enum.- Author:
- Martin Steiger
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionfromNative(Object input, FromNativeContext context) Convert the given native object into its Java representation using the given context.Indicate the native type used by this converter.toNative(Object input, ToNativeContext context) Convert a Java type to an appropriate native type.
- 
Constructor Details- 
EnumConverter- Parameters:
- clazz- the enum class
 
 
- 
- 
Method Details- 
fromNativeDescription copied from interface:FromNativeConverterConvert the given native object into its Java representation using the given context.- Specified by:
- fromNativein interface- FromNativeConverter
 
- 
toNativeDescription copied from interface:ToNativeConverterConvert 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)
 - Specified by:
- toNativein interface- ToNativeConverter
 
- 
nativeTypeDescription copied from interface:FromNativeConverterIndicate the native type used by this converter.- Specified by:
- nativeTypein interface- FromNativeConverter
- Specified by:
- nativeTypein interface- ToNativeConverter
 
 
-