Package com.sun.jna.platform
Klasse EnumConverter<T extends Enum<T>>
java.lang.Object
com.sun.jna.platform.EnumConverter<T>
- Typparameter:
T- the enum type
- Alle implementierten Schnittstellen:
FromNativeConverter,ToNativeConverter,TypeConverter
A
TypeConverter that maps an integer enum value to
an actual Java enum.- Autor:
- Martin Steiger
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungfromNative(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.
-
Konstruktordetails
-
EnumConverter
- Parameter:
clazz- the enum class
-
-
Methodendetails
-
fromNative
Beschreibung aus Schnittstelle kopiert:FromNativeConverterConvert the given native object into its Java representation using the given context.- Angegeben von:
fromNativein SchnittstelleFromNativeConverter
-
toNative
Beschreibung aus Schnittstelle kopiert: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
WStringBuffer(unsupported in direct mode)- primitive array (unsupported in direct mode)
- Angegeben von:
toNativein SchnittstelleToNativeConverter
-
nativeType
Beschreibung aus Schnittstelle kopiert:FromNativeConverterIndicate the native type used by this converter.- Angegeben von:
nativeTypein SchnittstelleFromNativeConverter- Angegeben von:
nativeTypein SchnittstelleToNativeConverter
-