|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jogamp.gluegen.cgram.types.Type
com.jogamp.gluegen.cgram.types.PrimitiveType
com.jogamp.gluegen.cgram.types.IntType
com.jogamp.gluegen.cgram.types.EnumType
public class EnumType
Describes enumerated types. Enumerations are like ints except that they have a set of named values.
Constructor Summary | |
---|---|
|
EnumType(String name)
|
protected |
EnumType(String name,
IntType underlyingType,
int cvAttributes)
|
|
EnumType(String name,
SizeThunk enumSizeInBytes)
|
Method Summary | |
---|---|
void |
addEnum(String name,
long val)
|
EnumType |
asEnum()
Casts this to an EnumType or returns null if not an EnumType. |
Object |
clone()
|
boolean |
containsEnumerate(String name)
Does this enum type contain an enumerate with the given name? |
boolean |
equals(Object arg)
Equality test for Types. |
String |
getEnumName(int i)
Fetch ith (0..getNumEnumerates() - 1) name |
long |
getEnumValue(int i)
Fetch ith (0..getNumEnumerates() - 1) value |
long |
getEnumValue(String name)
Fetch the value of the enumerate with the given name. |
int |
getNumEnumerates()
Number of enumerates defined in this enum. |
boolean |
removeEnumerate(String name)
Remove the enumerate with the given name. |
void |
visit(TypeVisitor arg)
Visit this type and all of the component types of this one; for example, the return type and argument types of a FunctionType. |
Methods inherited from class com.jogamp.gluegen.cgram.types.IntType |
---|
asInt, isUnsigned, setName, toString |
Methods inherited from class com.jogamp.gluegen.cgram.types.PrimitiveType |
---|
isPrimitive |
Methods inherited from class com.jogamp.gluegen.cgram.types.Type |
---|
arrayDimension, asArray, asBit, asCompound, asDouble, asFloat, asFunction, asPointer, asVoid, getCVAttributes, getCVAttributesString, getCVVariant, getName, getName, getSize, getSize, hashCode, hasTypedefName, isArray, isBit, isCompound, isConst, isDouble, isEnum, isFloat, isFunction, isFunctionPointer, isInt, isPointer, isVoid, isVolatile, pointerDepth |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EnumType(String name)
public EnumType(String name, SizeThunk enumSizeInBytes)
protected EnumType(String name, IntType underlyingType, int cvAttributes)
Method Detail |
---|
public Object clone()
clone
in class Type
public boolean equals(Object arg)
Type
equals
in class IntType
public EnumType asEnum()
Type
asEnum
in class Type
public void addEnum(String name, long val)
public int getNumEnumerates()
public String getEnumName(int i)
public long getEnumValue(int i)
public long getEnumValue(String name)
public boolean containsEnumerate(String name)
public boolean removeEnumerate(String name)
public void visit(TypeVisitor arg)
Type
visit
in class Type
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |