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

Org.SourceFlow.CSharp
Class CSharpNamespace

IComparable
   |
   +--CodeElement
         |
         +--CodeContainer
               |
               +--CSharpNamespace

   in CSharpNamespace.cs

public class CSharpNamespace
extends CodeContainer

A class generating a C# namespace declaration.


Field Summary
 override int Category
          Returns a numeric category number for the code element.
   
Fields inherited from class CodeContainer
Count
   
Fields inherited from class CodeElement
Category
 
Constructor Summary
CSharpNamespace( string name )
          Creates a new namespace.
 
Method Summary
 void AddClass( CSharpClass c )
          Adds a class declaration to the namespace.
 void AddEnumeration( CSharpEnumeration e )
          Adds an enumeration to the namespace.
 override void Print( StreamWriter output, CodeStyle style, int indent )
          Prints the code element to the specified output stream.
 override string ToString()
          Returns the namespace name.
   
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


Constructor Detail

CSharpNamespace

public CSharpNamespace( string name );
Creates a new namespace.
Parameters:
name - the fully qualified namespace name


Method Detail

AddClass

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

AddEnumeration

public void AddEnumeration( CSharpEnumeration e );
Adds an enumeration to the namespace.
Parameters:
e - the enumeration to add

Print

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

ToString

public override string ToString();
Returns the namespace name.
Returns:
the namespace name

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