public class PointerType extends Type implements Cloneable
relaxedEqSem
Constructor and Description |
---|
PointerType(SizeThunk size,
Type targetType,
int cvAttributes,
String typedefedName) |
Modifier and Type | Method and Description |
---|---|
PointerType |
asPointer()
Casts this to a PointerType or returns null if not a PointerType.
|
protected boolean |
equalSemanticsImpl(Type arg) |
protected boolean |
equalsImpl(Type arg) |
Type |
getBaseElementType()
Helper method to returns the bottom-most element type of this type.
|
String |
getCName(boolean includeCVAttrs)
Returns the name of this type, optionally including
const/volatile attributes.
|
String |
getName(boolean includeCVAttrs)
Returns the name of this type, optionally including
const/volatile attributes.
|
Type |
getTargetType()
Helper method to returns the target type of this type, in case another type is being referenced.
|
protected int |
hashCodeImpl() |
protected int |
hashCodeSemanticsImpl() |
boolean |
hasName() |
boolean |
isFunctionPointer()
Convenience routine indicating whether this Type is a pointer to
a function.
|
String |
toString()
Returns a string representation of this type.
|
String |
toString(String functionName,
String callingConvention)
For use only when printing function pointers.
|
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.
|
arrayDimension, asArray, asBit, asCompound, asDouble, asEnum, asFloat, asFunction, asInt, asVoid, clearCache, clone, equals, equalSemantics, getCName, getCVAttributes, getCVAttributesString, getCVVariant, getDebugString, getName, getSize, getSize, hashCode, hashCodeSemantics, hasTypedefName, isAnonymous, isArray, isBit, isCompound, isConst, isDouble, isEnum, isFloat, isFunction, isInt, isPointer, isPrimitive, isVoid, isVolatile, pointerDepth, setName, setTypedefName
protected int hashCodeImpl()
hashCodeImpl
in class Type
protected boolean equalsImpl(Type arg)
equalsImpl
in class Type
protected int hashCodeSemanticsImpl()
hashCodeSemanticsImpl
in class Type
protected boolean equalSemanticsImpl(Type arg)
equalSemanticsImpl
in class Type
public String getName(boolean includeCVAttrs)
Type
public String getCName(boolean includeCVAttrs)
Type
public PointerType asPointer()
Type
public Type getTargetType()
Type
getTargetType
in class Type
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 boolean isFunctionPointer()
Type
isFunctionPointer
in class Type
public String toString()
Type
public String toString(String functionName, String callingConvention)
public void visit(TypeVisitor arg)
Type