|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.sourceflow.CodeElement
org.sourceflow.c.CTypedef
A class generating a C typedef declaration.
| Constructor Summary | |
CTypedef(java.lang.String name,
java.lang.String type)
Creates a new typedef declaration with the specified values. |
|
| Method Summary | |
void |
addComment(CComment comment)
Adds a comment to this typedef. |
int |
category()
Returns a numeric category number for the code element. |
void |
print(java.io.PrintWriter out,
CodeStyle style,
int indent)
Prints the code element to the specified output stream. |
java.lang.String |
toString()
Returns the typedef name. |
| Methods inherited from class org.sourceflow.CodeElement |
compareTo, printSeparator |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public CTypedef(java.lang.String name,
java.lang.String type)
name - the type nametype - the existing type that is aliased| Method Detail |
public java.lang.String toString()
public void addComment(CComment comment)
comment - the new typedef commentpublic int category()
category in class CodeElement
public void print(java.io.PrintWriter out,
CodeStyle style,
int indent)
print in class CodeElementout - the output streamstyle - the code style to useindent - the indentation level
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||