|
SourceFlow 1.0.beta API Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
IComparable
|
+--CodeElement
|
+--CodeContainer
|
+--CSharpType
|
+--CSharpClass
in CSharpClass.csA 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 |
public const int ABSTRACT;
public override int Category;
public const int INTERNAL;
public const int NEW;
public const int PRIVATE;
public const int PROTECTED;
public const int PROTECTED_INTERNAL;
public const int PUBLIC;
public const int SEALED;
| Constructor Detail |
public CSharpClass( string name );
name - the class namepublic CSharpClass( int modifiers, string name );
modifiers - the modifier flag constants
name - the class namepublic CSharpClass( int modifiers, string name, string extendsClass );
modifiers - the modifier flag constants
name - the class name
extendsClass - the class to extend or implementpublic CSharpClass( int modifiers, string name, string[] extendClasses );
modifiers - the modifier flag constants
name - the class name
extendClasses - the classes to extend or implement| Method Detail |
public void AddClass( CSharpClass member );
member - the inner class to addpublic void AddConstructor( CSharpConstructor member );
member - the member to addpublic void AddEnumeration( CSharpEnumeration member );
member - the enumeration to addpublic void AddMethod( CSharpMethod member );
member - the member to addpublic override void Print( StreamWriter output, CodeStyle style, int indent );
output - the output stream
style - the code style to use
indent - the indentation level
|
SourceFlow 1.0.beta API Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||