public class ArrayType extends MemoryLayoutType implements Cloneable
| 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.
|
boolean |
equals(Object arg)
Equality test for Types.
|
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.
|
boolean |
hasLength() |
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, setLayoutedarrayDimension, asBit, asCompound, asDouble, asEnum, asFloat, asFunction, asInt, asPointer, asVoid, clone, getCVAttributes, getCVAttributesString, getCVVariant, getDebugString, getName, getSize, getSize, hashCode, hasTypedefName, isArray, isBit, isCompound, isConst, isDouble, isEnum, isFloat, isFunction, isFunctionPointer, isInt, isPointer, isPrimitive, isVoid, isVolatile, pointerDepth, setNamepublic boolean equals(Object arg)
Typepublic String getName(boolean includeCVAttrs)
Typepublic ArrayType asArray()
Typepublic Type getElementType()
public int getLength()
public boolean hasLength()
public Type getBaseElementType()
TypeIf this is a multidimensional array or pointer method returns the bottom-most element type, otherwise this.
getBaseElementType in class Typepublic String toString()
Typepublic void visit(TypeVisitor arg)
Type