public class ArrayType extends MemoryLayoutType implements Cloneable
relaxedEqSem
Constructor and Description |
---|
ArrayType(Type elementType,
SizeThunk sizeInBytes,
int length,
int cvAttributes) |
Modifier and Type | Method and Description |
---|---|
ArrayType |
asArray()
Casts this to an ArrayType or returns null if not an ArrayType.
|
protected boolean |
equalSemanticsImpl(Type arg) |
protected boolean |
equalsImpl(Type arg) |
Type |
getBaseElementType()
Helper method to returns the bottom-most element type of this type.
|
Type |
getElementType() |
int |
getLength() |
String |
getName(boolean includeCVAttrs)
Returns the name of this type, optionally including
const/volatile attributes.
|
protected int |
hashCodeImpl() |
protected int |
hashCodeSemanticsImpl() |
boolean |
hasLength() |
boolean |
hasName() |
String |
toString()
Returns a string representation of this type.
|
String |
toString(String variableName) |
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.
|
isLayouted, setLayouted
arrayDimension, asBit, asCompound, asDouble, asEnum, asFloat, asFunction, asInt, asPointer, asVoid, clearCache, clone, equals, equalSemantics, getCName, getCName, getCVAttributes, getCVAttributesString, getCVVariant, getDebugString, getName, getSize, getSize, getTargetType, hashCode, hashCodeSemantics, hasTypedefName, isAnonymous, isArray, isBit, isCompound, isConst, isDouble, isEnum, isFloat, isFunction, isFunctionPointer, isInt, isPointer, isPrimitive, isVoid, isVolatile, pointerDepth, setName, setTypedefName
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 String getName(boolean includeCVAttrs)
Type
public ArrayType asArray()
Type
public Type getElementType()
public int getLength()
public boolean hasLength()
public Type getBaseElementType()
Type
If this is a multidimensional array or pointer method returns the bottom-most element type, otherwise this.
getBaseElementType
in class Type
public String toString()
Type
public void visit(TypeVisitor arg)
Type