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, setLayouted
arrayDimension, 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, setName
public boolean equals(Object arg)
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