|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jogamp.gluegen.cgram.types.Type com.jogamp.gluegen.cgram.types.FunctionType
public class FunctionType
Describes a function type, used to model both function declarations and (via PointerType) function pointers.
Constructor Summary | |
---|---|
FunctionType(String name,
SizeThunk size,
Type returnType,
int cvAttributes)
|
Method Summary | |
---|---|
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. |
Methods inherited from class com.jogamp.gluegen.cgram.types.Type |
---|
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 |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FunctionType(String name, SizeThunk size, Type returnType, int cvAttributes)
Method Detail |
---|
public Object clone()
clone
in class Type
public boolean equals(Object arg)
Type
equals
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
toString
in class Type
public String toString(String functionName)
public String toString(String functionName, boolean emitNativeTag)
public void visit(TypeVisitor arg)
Type
visit
in class Type
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |