| Modifier and Type | Field and Description |
|---|---|
| private final Type | |
| private final int |
| Access | Constructor and Description |
|---|---|
| public | |
| public | ArrayType(final Type elementType, final SizeThunk sizeInBytes, final int length, final int cvAttributes, final ASTLocusTag astLocus)
|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public final int | arrayDimension()
Overrides com. |
| public final ArrayType | asArray()
Overrides com. |
| protected boolean | equalSemanticsImpl(final Type arg)
Implements abstract com. |
| protected boolean | |
| public final Type | getBaseElementType()
Overrides com. |
| public Type | |
| public int | |
| public String | getName(final boolean includeCVAttrs)
Overrides com. |
| protected int | |
| protected int | hashCodeSemanticsImpl()
Implements abstract com. |
| public boolean | |
| public boolean | |
| pack-priv Type | newVariantImpl(final boolean
true if new variant is intended to have new cvAttributes newCVVariant, final int the cvAttributes to be used cvAttributes, final ASTLocusTag the astLocus)ASTLocusTag to be usedImplements abstract com.
Implementation must use |
| pack-priv void | |
| public String | toString()
Overrides com. |
| public String | |
| public void | visit(final TypeVisitor arg)
Overrides com. Type and all of its component types; for
example, the return type and argument types of a FunctionType.
|
| elementType | back to summary |
|---|---|
| private final Type elementType | |
| length | back to summary |
|---|---|
| private final int length | |
| ArrayType | back to summary |
|---|---|
| public ArrayType(final Type elementType, final SizeThunk sizeInBytes, final int length, final int cvAttributes) | |
| ArrayType | back to summary |
|---|---|
| public ArrayType(final Type elementType, final SizeThunk sizeInBytes, final int length, final int cvAttributes, final ASTLocusTag astLocus) | |
| ArrayType | back to summary |
|---|---|
| private ArrayType(final ArrayType o, final int cvAttributes, final ASTLocusTag astLocus) | |
| arrayDimension | back to summary |
|---|---|
| public final int arrayDimension() Overrides com. Doc from com. Helper method for determining how many array dimentions this type represents (i.e., "char[][]" returns 2). Returns 0 if this type is not an array type.
| |
| asArray | back to summary |
|---|---|
| public final ArrayType asArray() Overrides com. Doc from com. Casts this to an ArrayType or returns null if not an ArrayType.
| |
| equalSemanticsImpl | back to summary |
|---|---|
| protected boolean equalSemanticsImpl(final Type arg) Implements abstract com.
| |
| equalsImpl | back to summary |
|---|---|
| protected boolean equalsImpl(final Type arg) Implements abstract com.
| |
| getBaseElementType | back to summary |
|---|---|
| public final Type getBaseElementType() Overrides com. Doc from com. Helper method to returns the bottom-most element type of this type. If this is a multidimensional array or pointer method returns the bottom-most element type, otherwise this.
| |
| getElementType | back to summary |
|---|---|
| public Type getElementType() | |
| getLength | back to summary |
|---|---|
| public int getLength() | |
| getName | back to summary |
|---|---|
| public String getName(final boolean includeCVAttrs) Overrides com. Doc from com. Returns the name of this type, optionally including const/volatile attributes. The returned string is suitable for use as a type specifier for Java.
| |
| hashCodeImpl | back to summary |
|---|---|
| protected int hashCodeImpl() Implements abstract com.
| |
| hashCodeSemanticsImpl | back to summary |
|---|---|
| protected int hashCodeSemanticsImpl() Implements abstract com.
| |
| hasLength | back to summary |
|---|---|
| public boolean hasLength() | |
| isAnon | back to summary |
|---|---|
| public boolean isAnon() Overrides com.
| |
| newVariantImpl | back to summary |
|---|---|
| pack-priv Type newVariantImpl(final boolean newCVVariant, final int cvAttributes, final ASTLocusTag astLocus) Implements abstract com. Doc from com. Create a new variant of this type matching the given parameter
Implementation must use
| |
| recomputeSize | back to summary |
|---|---|
| pack-priv void recomputeSize() Recompute the size of this array if necessary. This needs to be done when the base element type is a compound type after layouting. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides com. Doc from com. Returns a string representation of this type. The returned string is suitable for use as a type specifier for native C. It does contain an expanded description of structs/unions, hence may not be suitable for type declarations.
| |
| toString | back to summary |
|---|---|
| public String toString(final String variableName) | |
| visit | back to summary |
|---|---|
| public void visit(final TypeVisitor arg) Overrides com. Doc from com. Traverse this
| |