|
|||||||||||
| 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
org.sourceflow.visualbasic.VisualBasicFile
A class generating a Visual Basic source code file.
| Constructor Summary | |
VisualBasicFile(java.io.File basedir,
java.lang.String basename)
Creates a new Visual Basic source code file. |
|
| Method Summary | |
void |
addClass(VisualBasicClass c)
Adds a class declaration to the file. |
void |
addComment(VisualBasicComment comment)
Adds a file comment. |
void |
addEnumeration(VisualBasicEnumeration e)
Adds an enumeration declaration to the file. |
void |
addImports(VisualBasicImports imports)
Adds an imports declaration to the file. |
void |
addNamespace(VisualBasicNamespace namespace)
Adds a namespace declaration to the file. |
int |
category()
Returns a numeric category number for the code element. |
java.lang.String |
getName()
Returns the file name. |
void |
print(java.io.PrintWriter out,
CodeStyle style,
int indent)
Prints the file contents to the specified output stream. |
| Methods inherited from class org.sourceflow.CodeFile |
getFile, toString, write |
| Methods inherited from class org.sourceflow.CodeContainer |
addElement, printContents, size |
| 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 VisualBasicFile(java.io.File basedir,
java.lang.String basename)
basedir - the base output directorybasename - the base file name (without extension)| Method Detail |
public java.lang.String getName()
getName in class CodeFilepublic int category()
category in class CodeElementpublic void addComment(VisualBasicComment comment)
comment - the file comment to addpublic void addImports(VisualBasicImports imports)
imports - the imports declaration to addpublic void addNamespace(VisualBasicNamespace namespace)
namespace - the namespace declaration to addpublic void addClass(VisualBasicClass c)
c - the class declaration to addpublic void addEnumeration(VisualBasicEnumeration e)
e - the enumeration to add
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 | ||||||||||