Constructor and Description |
---|
PointerType(SizeThunk size,
Type targetType,
int cvAttributes) |
Modifier and Type | Method and Description |
---|---|
PointerType |
asPointer()
Casts this to a PointerType or returns null if not a PointerType.
|
boolean |
equals(Object arg)
Equality test for Types.
|
Type |
getLastTargetType() |
String |
getName(boolean includeCVAttrs)
Returns the name of this type, optionally including
const/volatile attributes.
|
Type |
getTargetType() |
int |
hashCode()
Hashcode for Types.
|
boolean |
hasTypedefedName() |
boolean |
isFunctionPointer()
Convenience routine indicating whether this Type is a pointer to
a function.
|
void |
setName(String name)
Set the name of this type; used for handling typedefs.
|
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, clone, getCVAttributes, getCVAttributesString, getCVVariant, getName, getSize, getSize, hasTypedefName, isArray, isBit, isCompound, isConst, isDouble, isEnum, isFloat, isFunction, isInt, isPointer, isPrimitive, isVoid, isVolatile, pointerDepth
public int hashCode()
Type
public boolean equals(Object arg)
Type
public void setName(String name)
Type
public String getName(boolean includeCVAttrs)
Type
public boolean hasTypedefedName()
public PointerType asPointer()
Type
public Type getTargetType()
public Type getLastTargetType()
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