public class IntType extends PrimitiveType implements Cloneable
Constructor and Description |
---|
IntType(String name,
SizeThunk size,
boolean unsigned,
int cvAttributes) |
IntType(String name,
SizeThunk size,
boolean unsigned,
int cvAttributes,
boolean typedefedUnsigned) |
Modifier and Type | Method and Description |
---|---|
IntType |
asInt()
Casts this to an IntType or returns null if not an IntType.
|
boolean |
equals(Object arg)
Equality test for Types.
|
boolean |
isPrimitiveUnsigned()
Indicates whether this type is an unsigned primitive type, as opposed to a typedef type that's unsigned.
|
boolean |
isUnsigned()
Indicates whether this type is unsigned
|
void |
setName(String name)
Set the name of this type; used for handling typedefs.
|
String |
toString()
Returns a string representation of this type.
|
isPrimitive
arrayDimension, asArray, asBit, asCompound, asDouble, asEnum, asFloat, asFunction, asPointer, asVoid, clone, getCVAttributes, getCVAttributesString, getCVVariant, getName, getName, getSize, getSize, hashCode, hasTypedefName, isArray, isBit, isCompound, isConst, isDouble, isEnum, isFloat, isFunction, isFunctionPointer, isInt, isPointer, isVoid, isVolatile, pointerDepth, visit
public boolean equals(Object arg)
Type
public void setName(String name)
Type
public IntType asInt()
Type
public boolean isUnsigned()
public boolean isPrimitiveUnsigned()