| Modifier and Type | Field and Description |
|---|---|
| private final Type |
| Access | Constructor and Description |
|---|---|
| public | |
| public | PointerType(final SizeThunk size, final Type targetType, final int cvAttributes, final ASTLocusTag astLocus)
|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public final PointerType | asPointer()
Casts this to a PointerType or returns null if not a PointerType.
|
| protected boolean | equalSemanticsImpl(final Type arg)
Implements abstract com. |
| protected boolean | |
| public final Type | getBaseElementType()
Overrides com. |
| public String | getCName(final boolean includeCVAttrs)
Overrides com. |
| public String | getName(final boolean includeCVAttrs)
Overrides com. |
| public final Type | getTargetType()
Overrides com. |
| protected int | |
| protected int | hashCodeSemanticsImpl()
Implements abstract com. |
| public boolean | |
| public final boolean | isFunctionPointer()
Overrides com. |
| 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 |
| public final int | pointerDepth()
Helper method for determining how many pointer indirections this
type represents (i.e., "void **" returns 2).
|
| public String | toString()
Overrides com. |
| public String | |
| private 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.
|
| targetType | back to summary |
|---|---|
| private final Type targetType | |
| PointerType | back to summary |
|---|---|
| public PointerType(final SizeThunk size, final Type targetType, final int cvAttributes) | |
| PointerType | back to summary |
|---|---|
| public PointerType(final SizeThunk size, final Type targetType, final int cvAttributes, final ASTLocusTag astLocus) | |
| PointerType | back to summary |
|---|---|
| private PointerType(final PointerType o, final int cvAttributes, final ASTLocusTag astLocus) | |
| asPointer | back to summary |
|---|---|
| public final PointerType asPointer() Overrides com. Doc from com. Casts this to a PointerType or returns null if not a PointerType.
| |
| 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.
| |
| getCName | back to summary |
|---|---|
| public String getCName(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 native C.
| |
| 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.
| |
| getTargetType | back to summary |
|---|---|
| public final Type getTargetType() Overrides com. Doc from com. Helper method to returns the target type of this type, in case another type is being referenced.
| |
| hashCodeImpl | back to summary |
|---|---|
| protected int hashCodeImpl() Implements abstract com.
| |
| hashCodeSemanticsImpl | back to summary |
|---|---|
| protected int hashCodeSemanticsImpl() Implements abstract com.
| |
| isAnon | back to summary |
|---|---|
| public boolean isAnon() Overrides com.
| |
| isFunctionPointer | back to summary |
|---|---|
| public final boolean isFunctionPointer() Overrides com. Doc from com. Convenience routine indicating whether this Type is a pointer to a function.
| |
| 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
| |
| pointerDepth | back to summary |
|---|---|
| public final int pointerDepth() Overrides com. Doc from com. Helper method for determining how many pointer indirections this type represents (i.e., "void **" returns 2). Returns 0 if this type is not a pointer type.
| |
| 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 functionName, final String callingConvention) For use only when printing function pointers. Calling convention string (i.e., "__stdcall") is optional and is generally only needed on Windows. | |
| toStringInt | back to summary |
|---|---|
| private String toStringInt() | |
| visit | back to summary |
|---|---|
| public void visit(final TypeVisitor arg) Overrides com. Doc from com. Traverse this
| |