|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.sourceflow.CodeElement
org.sourceflow.CodeContainer
org.sourceflow.java.JavaType
An abstract superclass for the Java class and interface code generators.
| Constructor Summary | |
protected |
JavaType(int modifiers,
java.lang.String name,
java.lang.String extendsType,
java.lang.String implementType)
Creates a new type code generator. |
protected |
JavaType(int modifiers,
java.lang.String name,
java.lang.String extendsType,
java.lang.String[] implementTypes)
Creates a new type code generator. |
| Method Summary | |
void |
addComment(JavaComment comment)
Adds a comment to this type. |
protected void |
print(java.io.PrintWriter out,
CodeStyle style,
int indent,
java.lang.String type)
Prints the type to the specified stream. |
java.lang.String |
toString()
Returns the type name. |
| Methods inherited from class org.sourceflow.CodeContainer |
addElement, printContents, size |
| Methods inherited from class org.sourceflow.CodeElement |
category, compareTo, print, printSeparator |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
protected JavaType(int modifiers,
java.lang.String name,
java.lang.String extendsType,
java.lang.String implementType)
modifiers - the modifier constant flagsname - the type nameextendsType - the class or interface to extendimplementType - the class or interface to implement
protected JavaType(int modifiers,
java.lang.String name,
java.lang.String extendsType,
java.lang.String[] implementTypes)
modifiers - the modifier constant flagsname - the type nameextendsType - the class or interface to extendimplementTypes - the classes or interfaces to implement| Method Detail |
public java.lang.String toString()
public void addComment(JavaComment comment)
comment - the new type comment
protected void print(java.io.PrintWriter out,
CodeStyle style,
int indent,
java.lang.String type)
out - the output streamstyle - the code style to useindent - the indentation leveltype - the type name (i.e. "class" or "interface")
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||