| Modifier and Type | Field and Description |
|---|---|
| private ArrayList | |
| private ArrayList | |
| private final Type |
| Access | Constructor and Description |
|---|---|
| public | FunctionType(final String name, final SizeThunk size, final Type returnType, final int cvAttributes)
|
| public | FunctionType(final String name, final SizeThunk size, final Type returnType, final int cvAttributes, final ASTLocusTag astLocus)
|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public FunctionType | asFunction()
Casts this to a FunctionType or returns null if not a FunctionType.
|
| protected boolean | equalSemanticsImpl(final Type arg)
Implements abstract com. |
| protected boolean | |
| public String | |
| public Type | |
| public int | |
| public Type | |
| protected int | |
| protected int | hashCodeSemanticsImpl()
Implements abstract com. |
| pack-priv Type | newVariantImpl(final boolean
true if new variant is intended to have new cvAttributes newCVVariant, final int the cvAttributes to be used cvAttributes, final ASTLocusTag the astLocus)ASTLocusTag to be usedImplements abstract com.
Implementation must use |
| public void | |
| public String | toString()
Overrides com. |
| public String | |
| pack-priv String | |
| public void | visit(final TypeVisitor arg)
Overrides com. Type and all of its component types; for
example, the return type and argument types of a FunctionType.
|
| argumentNames | back to summary |
|---|---|
| private ArrayList<String> argumentNames | |
| argumentTypes | back to summary |
|---|---|
| private ArrayList<Type> argumentTypes | |
| returnType | back to summary |
|---|---|
| private final Type returnType | |
| FunctionType | back to summary |
|---|---|
| public FunctionType(final String name, final SizeThunk size, final Type returnType, final int cvAttributes) | |
| FunctionType | back to summary |
|---|---|
| public FunctionType(final String name, final SizeThunk size, final Type returnType, final int cvAttributes, final ASTLocusTag astLocus) | |
| FunctionType | back to summary |
|---|---|
| private FunctionType(final FunctionType o, final ASTLocusTag astLocus) | |
| addArgument | back to summary |
|---|---|
| public void addArgument(final Type argumentType, final String argumentName) Add an argument's name and type. Use null for unknown argument names. | |
| asFunction | back to summary |
|---|---|
| public FunctionType asFunction() Overrides com. Doc from com. Casts this to a FunctionType or returns null if not a FunctionType.
| |
| equalSemanticsImpl | back to summary |
|---|---|
| protected boolean equalSemanticsImpl(final Type arg) Implements abstract com.
| |
| equalsImpl | back to summary |
|---|---|
| protected boolean equalsImpl(final Type arg) Implements abstract com.
| |
| getArgumentName | back to summary |
|---|---|
| public String getArgumentName(final int i) Returns the name of the ith argument. May return null if no argument names were available during parsing. | |
| getArgumentType | back to summary |
|---|---|
| public Type getArgumentType(final int i) Returns the type of the ith argument. | |
| getNumArguments | back to summary |
|---|---|
| public int getNumArguments() | |
| getReturnType | back to summary |
|---|---|
| public Type getReturnType() Returns the return type of this function. | |
| hashCodeImpl | back to summary |
|---|---|
| protected int hashCodeImpl() Implements abstract com.
| |
| hashCodeSemanticsImpl | back to summary |
|---|---|
| protected int hashCodeSemanticsImpl() Implements abstract com.
| |
| newVariantImpl | back to summary |
|---|---|
| pack-priv Type newVariantImpl(final boolean newCVVariant, final int cvAttributes, final ASTLocusTag astLocus) Implements abstract com. Doc from com. Create a new variant of this type matching the given parameter
Implementation must use
| |
| setArgumentName | back to summary |
|---|---|
| public void setArgumentName(final int i, final String name) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides com. Doc from com. Returns a string representation of this type. The returned string is suitable for use as a type specifier for native C. It does contain an expanded description of structs/unions, hence may not be suitable for type declarations.
| |
| toString | back to summary |
|---|---|
| public String toString(final String functionName, final boolean emitNativeTag) | |
| toString | back to summary |
|---|---|
| pack-priv String toString(final String functionName, final String callingConvention, final boolean emitNativeTag, final boolean isPointer) | |
| visit | back to summary |
|---|---|
| public void visit(final TypeVisitor arg) Overrides com. Doc from com. Traverse this
| |