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

Org.SourceFlow
Class CodeContainer

IComparable
   |
   +--CodeElement
         |
         +--CodeContainer

   in CodeContainer.cs
Direct Known Subclasses:
CodeFile, CSharpNamespace, CSharpType, JavaType, VisualBasicNamespace, VisualBasicType

public abstract class CodeContainer
extends CodeElement

The abstract base class for all code element containers. The code element containers contains other code elements.


Field Summary
protected internal int Count
          Returns the number of content elements in this container.
   
Fields inherited from class CodeElement
Category
 
Constructor Summary
CodeContainer()
          Creates a new code element container.
 
Method Summary
protected internal void AddElement( CodeElement elem )
          Adds a code element to this container.
protected internal void PrintContents( StreamWriter output, CodeStyle style, int indent )
          Prints all the contained code elements to the specified output stream.
   
Methods inherited from class CodeElement
CompareTo, Print, PrintSeparator
 

Field Detail

Count

protected internal int Count;
Returns the number of content elements in this container.
Returns:
the number of content elements in this container


Constructor Detail

CodeContainer

public CodeContainer();
Creates a new code element container.


Method Detail

AddElement

protected internal void AddElement( CodeElement elem );
Adds a code element to this container.
Parameters:
elem - the code element to add

PrintContents

protected internal void PrintContents( StreamWriter output, CodeStyle style, int indent );
Prints all the contained code elements to the specified output stream. The code elements will be sorted by their category number before printing.
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