public class IntType extends PrimitiveType implements Cloneable
relaxedEqSem
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.
|
protected boolean |
equalSemanticsImpl(Type arg) |
protected boolean |
equalsImpl(Type arg) |
protected int |
hashCodeImpl() |
protected int |
hashCodeSemanticsImpl() |
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 |
setTypedefName(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, clearCache, clone, equals, equalSemantics, getBaseElementType, getCName, getCName, getCVAttributes, getCVAttributesString, getCVVariant, getDebugString, getName, getName, getSize, getSize, getTargetType, hashCode, hashCodeSemantics, hasName, hasTypedefName, isAnonymous, isArray, isBit, isCompound, isConst, isDouble, isEnum, isFloat, isFunction, isFunctionPointer, isInt, isPointer, isVoid, isVolatile, pointerDepth, setName, visit
protected int hashCodeImpl()
hashCodeImpl
in class Type
protected boolean equalsImpl(Type arg)
equalsImpl
in class Type
protected int hashCodeSemanticsImpl()
hashCodeSemanticsImpl
in class Type
protected boolean equalSemanticsImpl(Type arg)
equalSemanticsImpl
in class Type
public void setTypedefName(String name)
Type
setTypedefName
in class Type
public IntType asInt()
Type
public boolean isUnsigned()
public boolean isPrimitiveUnsigned()