public class FunctionType extends Type implements Cloneable
relaxedEqSem
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() |
protected boolean |
equalSemanticsImpl(Type arg) |
protected boolean |
equalsImpl(Type arg) |
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.
|
protected int |
hashCodeImpl() |
protected int |
hashCodeSemanticsImpl() |
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, clearCache, equals, equalSemantics, getBaseElementType, getCName, getCName, getCVAttributes, getCVAttributesString, getCVVariant, getDebugString, getName, getName, getSize, getSize, getTargetType, hashCode, hashCodeSemantics, hasName, hasTypedefName, isAnonymous, isArray, isBit, isCompound, isConst, isDouble, isEnum, isFloat, isFunction, isFunctionPointer, 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 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