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

Org.SourceFlow.CSharp
Class CSharpClass

IComparable
   |
   +--CodeElement
         |
         +--CodeContainer
               |
               +--CSharpType
                     |
                     +--CSharpClass

   in CSharpClass.cs

public class CSharpClass
extends CSharpType

A class generating a C# class declaration.


Field Summary
 const int ABSTRACT
          The abstract modifier constant.
 override int Category
          Returns a numeric category number for the code element.
 const int INTERNAL
          The internal access modifier constant.
 const int NEW
          The new modifier constant.
 const int PRIVATE
          The private access modifier constant.
 const int PROTECTED
          The protected access modifier constant.
 const int PROTECTED_INTERNAL
          The protected internal access modifier constant.
 const int PUBLIC
          The public access modifier constant.
 const int SEALED
          The sealed modifier constant.
   
Fields inherited from class CodeContainer
Count
   
Fields inherited from class CodeElement
Category
 
Constructor Summary
CSharpClass( string name )
          Creates a new class code generator with a public access modifier.
CSharpClass( int modifiers, string name )
          Creates a new class code generator with the specified modifiers.
CSharpClass( int modifiers, string name, string extendsClass )
          Creates a new class code generator with the specified access modifier that extends the specified class.
CSharpClass( int modifiers, string name, string[] extendClasses )
          Creates a new class code generator with the specified access modifier that extends and implements the specified classes or interfaces.
 
Method Summary
 void AddClass( CSharpClass member )
          Adds an inner class as a member.
 void AddConstructor( CSharpConstructor member )
          Adds a constructor to the class.
 void AddEnumeration( CSharpEnumeration member )
          Adds an enumeration as a member.
 void AddMethod( CSharpMethod member )
          Adds a method to the class.
 override void Print( StreamWriter output, CodeStyle style, int indent )
          Prints the class to the specified stream.
   
Methods inherited from class CSharpType
ToString, AddComment, Print
   
Methods inherited from class CodeContainer
AddElement, PrintContents
   
Methods inherited from class CodeElement
CompareTo, Print, PrintSeparator
 

Field Detail

ABSTRACT

public const int ABSTRACT;
The abstract modifier constant.

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

INTERNAL

public const int INTERNAL;
The internal access modifier constant.

NEW

public const int NEW;
The new modifier constant. May only be used when declared inside another type.

PRIVATE

public const int PRIVATE;
The private access modifier constant. May only be used when declared inside another type.

PROTECTED

public const int PROTECTED;
The protected access modifier constant. May only be used when declared inside another type.

PROTECTED_INTERNAL

public const int PROTECTED_INTERNAL;
The protected internal access modifier constant. May only be used when declared inside another type.

PUBLIC

public const int PUBLIC;
The public access modifier constant.

SEALED

public const int SEALED;
The sealed modifier constant.


Constructor Detail

CSharpClass

public CSharpClass( string name );
Creates a new class code generator with a public access modifier.
Parameters:
name - the class name

CSharpClass

public CSharpClass( int modifiers, string name );
Creates a new class code generator with the specified modifiers.
Parameters:
modifiers - the modifier flag constants
name - the class name

CSharpClass

public CSharpClass( int modifiers, string name, string extendsClass );
Creates a new class code generator with the specified access modifier that extends the specified class.
Parameters:
modifiers - the modifier flag constants
name - the class name
extendsClass - the class to extend or implement

CSharpClass

public CSharpClass( int modifiers, string name, string[] extendClasses );
Creates a new class code generator with the specified access modifier that extends and implements the specified classes or interfaces.
Parameters:
modifiers - the modifier flag constants
name - the class name
extendClasses - the classes to extend or implement


Method Detail

AddClass

public void AddClass( CSharpClass member );
Adds an inner class as a member.
Parameters:
member - the inner class to add

AddConstructor

public void AddConstructor( CSharpConstructor member );
Adds a constructor to the class.
Parameters:
member - the member to add

AddEnumeration

public void AddEnumeration( CSharpEnumeration member );
Adds an enumeration as a member.
Parameters:
member - the enumeration to add

AddMethod

public void AddMethod( CSharpMethod member );
Adds a method to the class.
Parameters:
member - the member to add

Print

public override void Print( StreamWriter output, CodeStyle style, int indent );
Prints the class to the specified 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