public interface EnumType extends IntType
Modifier and Type | Method and Description |
---|---|
java.lang.String |
enumNameForValue(long val)
Return name for given enum value, or null if not found
|
java.lang.String |
getEnumName(int i)
Fetch ith (0..getNumEnumerants() - 1) name
|
long |
getEnumValue(int i)
Fetch ith (0..getNumEnumerants() - 1) value
|
int |
getNumEnumerates()
Number of enumerates defined in this enum
|
getIntSize, isUnsigned
asArray, asBit, asCompound, asDouble, asEnum, asFloat, asFunction, asInt, asMemberFunction, asPointer, asRef, asVoid, getName, getSize, isArray, isBit, isCompound, isConst, isDouble, isEnum, isFloat, isFunction, isInt, isMemberFunction, isPointer, isRef, isVoid, isVolatile, iterateObject, iterateObject, toString
int getNumEnumerates()
java.lang.String getEnumName(int i)
long getEnumValue(int i)
java.lang.String enumNameForValue(long val)
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.