Constructor and Description |
---|
FunctionType(String name,
SizeThunk size,
Type returnType,
int cvAttributes) |
Modifier and Type | Method and Description |
---|---|
void |
addArgument(Type argumentType,
String argumentName)
Add an argument's name and type.
|
FunctionType |
asFunction()
Casts this to a FunctionType or returns null if not a FunctionType.
|
Object |
clone() |
boolean |
equals(Object arg)
Equality test for Types.
|
String |
getArgumentName(int i)
Returns the name of the ith argument.
|
Type |
getArgumentType(int i)
Returns the type of the ith argument.
|
int |
getNumArguments() |
Type |
getReturnType()
Returns the return type of this function.
|
void |
setArgumentName(int i,
String name) |
String |
toString()
Returns a string representation of this type.
|
String |
toString(String functionName) |
String |
toString(String functionName,
boolean emitNativeTag) |
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, asInt, asPointer, asVoid, getCVAttributes, getCVAttributesString, getCVVariant, getName, getName, getSize, getSize, hashCode, hasTypedefName, isArray, isBit, isCompound, isConst, isDouble, isEnum, isFloat, isFunction, isFunctionPointer, isInt, isPointer, isPrimitive, isVoid, isVolatile, pointerDepth, setName
public boolean equals(Object arg)
Type
public FunctionType asFunction()
Type
asFunction
in class Type
public Type getReturnType()
public int getNumArguments()
public String getArgumentName(int i)
public Type getArgumentType(int i)
public void addArgument(Type argumentType, String argumentName)
public void setArgumentName(int i, String name)
public String toString()
Type
public void visit(TypeVisitor arg)
Type