Package org.asnlab.asndt.runtime.conv
Class ReflectionEnumeratedConverter
java.lang.Object
org.asnlab.asndt.runtime.conv.AsnConverter
org.asnlab.asndt.runtime.conv.EnumeratedConverter
org.asnlab.asndt.runtime.conv.ReflectionEnumeratedConverter
-
Field Summary
FieldsFields inherited from class org.asnlab.asndt.runtime.conv.EnumeratedConverter
CONVERTER
-
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
enumClass
-
-
Constructor Details
-
ReflectionEnumeratedConverter
-
-
Method Details
-
toValue
Description copied from class:EnumeratedConverter
Return the enum value- Specified by:
toValue
in classEnumeratedConverter
- Parameters:
object
- The ENUMERATED value object- Returns:
- The integer value associated with this ENUMERATED value
-
toObject
Description copied from class:EnumeratedConverter
Return the enum object- Specified by:
toObject
in classEnumeratedConverter
- Parameters:
value
- The integer value associated with this ENUMERATED value- Returns:
- The ENUMERATED value object
-
toOrdinal
Description copied from class:EnumeratedConverter
Return the enum ordinal (0 base)- Specified by:
toOrdinal
in classEnumeratedConverter
- Parameters:
object
- The ENUMERATED value object- Returns:
- The enum ordinal (0 base) of this ENUMERATED value
-
toEnum
Description copied from class:EnumeratedConverter
Return the enum object- Specified by:
toEnum
in classEnumeratedConverter
- Parameters:
ordinal
- The enum ordinal (0 base) of this ENUMERATED value- Returns:
- The ENUMERATED value object
-
isAnonymous
public boolean isAnonymous()- Overrides:
isAnonymous
in classAsnConverter
-