|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jogamp.gluegen.cgram.types.Type
com.jogamp.gluegen.cgram.types.ArrayType
public class ArrayType
Represents an array type. This differs from a pointer type in C syntax by the use of "[]" rather than "*". The length may or may not be known; if the length is unknown then a negative number should be passed in to the constructor.
Constructor Summary | |
---|---|
ArrayType(Type elementType,
SizeThunk sizeInBytes,
int length,
int cvAttributes)
|
Method Summary | |
---|---|
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()
|
void |
recomputeSize()
Recompute the size of this array if necessary. |
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. |
Methods inherited from class com.jogamp.gluegen.cgram.types.Type |
---|
arrayDimension, 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, setName |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ArrayType(Type elementType, SizeThunk sizeInBytes, int length, int cvAttributes)
Method Detail |
---|
public boolean equals(Object arg)
Type
equals
in class Type
public String getName(boolean includeCVAttrs)
Type
getName
in class Type
public ArrayType asArray()
Type
asArray
in class Type
public Type getElementType()
public int getLength()
public boolean hasLength()
public Type getBaseElementType()
public void recomputeSize()
public String toString()
Type
toString
in class Type
public String toString(String variableName)
public void visit(TypeVisitor arg)
Type
visit
in class Type
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |