|
|||||||||||
| 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.CodeFile
The abstract base class for all source code files. The source code files are also code element containers.
| Constructor Summary | |
CodeFile(java.io.File dir)
Creates a new source code file. |
|
| Method Summary | |
java.io.File |
getFile()
Returns the file object to be generated. |
abstract java.lang.String |
getName()
Returns the file name without the directory path. |
java.lang.String |
toString()
Returns the complete file path, including the directory. |
void |
write(CodeStyle style)
Writes the source code for this file. |
| 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 |
public CodeFile(java.io.File dir)
dir - the base directory| Method Detail |
public java.lang.String toString()
public java.io.File getFile()
public abstract java.lang.String getName()
public void write(CodeStyle style)
throws java.io.IOException
style - the code style to use
java.io.IOException - if the file could not be written properly
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||