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()
Return the bottommost element type if this is a multidimensional
array.
|
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, 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()
public String toString()
Typepublic void visit(TypeVisitor arg)
Type