public class BasicEnumType extends BasicIntType implements EnumType
CONST, VOLATILE
Constructor and Description |
---|
BasicEnumType(java.lang.String name,
Type underlyingType)
Underlying type of enum must be an integer type (or as yet
unresolved)
|
Modifier and Type | Method and Description |
---|---|
void |
addEnum(java.lang.String name,
long val) |
EnumType |
asEnum() |
protected Type |
createCVVariant(int cvAttributes) |
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
|
int |
getSize()
Size of the type in bytes
|
boolean |
isUnsigned()
Indicates whether this type is unsigned
|
void |
iterateObject(Address a,
ObjectVisitor v,
FieldIdentifier f)
Alternate visitor which allows end user to specify the
FieldIdentifier associated with this type (typically for
visiting locals in a frame)
|
void |
visit(TypeVisitor v) |
asInt, getIntSize
addCVVariant, asArray, asBit, asCompound, asDouble, asFloat, asFunction, asMemberFunction, asPointer, asRef, asVoid, findCVVariant, getCVVariant, getName, isArray, isBit, isCompound, isConst, isDouble, isEnum, isFloat, isFunction, isInt, isLazy, isMemberFunction, isPointer, isRef, isVoid, isVolatile, iterateObject, setName, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getIntSize
asArray, asBit, asCompound, asDouble, asFloat, asFunction, asInt, asMemberFunction, asPointer, asRef, asVoid, getName, isArray, isBit, isCompound, isConst, isDouble, isEnum, isFloat, isFunction, isInt, isMemberFunction, isPointer, isRef, isVoid, isVolatile, iterateObject, toString
public BasicEnumType(java.lang.String name, Type underlyingType)
public EnumType asEnum()
public int getSize()
Type
public boolean isUnsigned()
IntType
isUnsigned
in interface IntType
isUnsigned
in class BasicIntType
public void addEnum(java.lang.String name, long val)
public int getNumEnumerates()
EnumType
getNumEnumerates
in interface EnumType
public java.lang.String getEnumName(int i)
EnumType
getEnumName
in interface EnumType
public long getEnumValue(int i)
EnumType
getEnumValue
in interface EnumType
public java.lang.String enumNameForValue(long val)
EnumType
enumNameForValue
in interface EnumType
public void iterateObject(Address a, ObjectVisitor v, FieldIdentifier f)
Type
iterateObject
in interface Type
iterateObject
in class BasicIntType
protected Type createCVVariant(int cvAttributes)
createCVVariant
in class BasicIntType
public void visit(TypeVisitor v)
visit
in class BasicIntType
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.