Overview   Project   Class   Tree   Deprecated   Index 
SourceFlow 1.0.beta API Documentation
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

Org.SourceFlow.VisualBasic
Class VisualBasicFile

IComparable
   |
   +--CodeElement
         |
         +--CodeContainer
               |
               +--CodeFile
                     |
                     +--VisualBasicFile

   in VisualBasicFile.cs

public class VisualBasicFile
extends CodeFile

A class generating a Visual Basic source code file.


Field Summary
 override int Category
          Returns a numeric category number for the code element.
 override string Name
          Returns the file name.
   
Fields inherited from class CodeFile
File, Name
   
Fields inherited from class CodeContainer
Count
   
Fields inherited from class CodeElement
Category
 
Constructor Summary
VisualBasicFile( DirectoryInfo basedir, 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 AddNamespace( VisualBasicNamespace n )
          Adds a namespace declaration to the file.
 void AddUsing( VisualBasicImports i )
          Adds an imports declaration to the file.
 override void Print( StreamWriter output, CodeStyle style, int indent )
          Prints the file contents to the specified output stream.
   
Methods inherited from class CodeFile
ToString, Write
   
Methods inherited from class CodeContainer
AddElement, PrintContents
   
Methods inherited from class CodeElement
CompareTo, Print, PrintSeparator
 

Field Detail

Category

public override int Category;
Returns a numeric category number for the code element. A lower category number implies that the code element should be placed before code elements with a higher category number within a declaration.
Returns:
the category number

Name

public override string Name;
Returns the file name.
Returns:
the file name.


Constructor Detail

VisualBasicFile

public VisualBasicFile( DirectoryInfo basedir, string basename );
Creates a new Visual Basic source code file.
Parameters:
basedir - the base output directory
basename - the base file name (without extension)


Method Detail

AddClass

public void AddClass( VisualBasicClass c );
Adds a class declaration to the file.
Parameters:
c - the class declaration to add

AddComment

public void AddComment( VisualBasicComment comment );
Adds a file comment.
Parameters:
comment - the file comment to add

AddEnumeration

public void AddEnumeration( VisualBasicEnumeration e );
Adds an enumeration declaration to the file.
Parameters:
e - the enumeration to add

AddNamespace

public void AddNamespace( VisualBasicNamespace n );
Adds a namespace declaration to the file.
Parameters:
n - the namespace declaration to add

AddUsing

public void AddUsing( VisualBasicImports i );
Adds an imports declaration to the file.
Parameters:
i - the imports declaration to add

Print

public override void Print( StreamWriter output, CodeStyle style, int indent );
Prints the file contents to the specified output stream.
Parameters:
output - the output stream
style - the code style to use
indent - the indentation level

 Overview   Project   Class   Tree   Deprecated   Index 
SourceFlow 1.0.beta API Documentation
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD