public class BitType extends IntType implements Cloneable
relaxedEqSem
Constructor and Description |
---|
BitType(IntType underlyingType,
int sizeInBits,
int lsbOffset,
int cvAttributes,
ASTLocusTag astLocus) |
Modifier and Type | Method and Description |
---|---|
BitType |
asBit()
Casts this to a BitType or returns null if not a BitType.
|
protected boolean |
equalSemanticsImpl(Type arg) |
protected boolean |
equalsImpl(Type arg) |
int |
getOffset()
Offset from the least-significant bit (LSB) of the LSB of this
type
|
int |
getSizeInBits()
Size in bits of this type.
|
protected int |
hashCodeImpl() |
protected int |
hashCodeSemanticsImpl() |
void |
visit(TypeVisitor arg)
Traverse this
Type and all of its component types; for
example, the return type and argument types of a FunctionType. |
asInt, getCName, isUnsigned, setTypedefName, toString
isPrimitive
arrayDimension, asArray, asCompound, asDouble, asEnum, asFloat, asFunction, asPointer, asVoid, clearCache, clone, equals, equalSemantics, getASTLocusTag, getBaseElementType, getCName, getCVAttributes, getCVAttributesString, getDebugString, getName, getName, getSize, getSize, getTargetType, hashCode, hashCodeSemantics, isAnon, isArray, isBaseTypeConst, isBit, isCompound, isConst, isDouble, isEnum, isFloat, isFunction, isFunctionPointer, isInt, isPointer, isTypedef, isVoid, isVolatile, newCVVariant, pointerDepth
public BitType(IntType underlyingType, int sizeInBits, int lsbOffset, int cvAttributes, ASTLocusTag astLocus)
protected int hashCodeImpl()
hashCodeImpl
in class IntType
protected boolean equalsImpl(Type arg)
equalsImpl
in class IntType
protected int hashCodeSemanticsImpl()
hashCodeSemanticsImpl
in class IntType
protected boolean equalSemanticsImpl(Type arg)
equalSemanticsImpl
in class IntType
public BitType asBit()
Type
public int getSizeInBits()
public int getOffset()
public void visit(TypeVisitor arg)
Type
Type
and all of its component types; for
example, the return type and argument types of a FunctionType.