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. |
|
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. |
Count
protected internal int Count;
-
Returns the number of content elements in this container.
- Returns:
- the number of content elements in this container
CodeContainer
public CodeContainer();
- Creates a new code element container.
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