|
SourceFlow 1.0.beta API Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
IComparable
|
+--CodeElement
|
+--CodeContainer
|
+--CSharpType
|
+--CSharpEnumeration
in CSharpEnumeration.csA class generating a C# enumeration declaration.
| Field Summary | |
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. |
| Fields inherited from class CodeContainer |
Count |
| Fields inherited from class CodeElement |
Category |
| Constructor Summary | |
CSharpEnumeration( string name )
Creates a new enumeration code generator with public access. |
|
CSharpEnumeration( int modifiers, string name )
Creates a new enumeration code generator with the specified modifiers. |
|
| Method Summary | |
void |
AddConstant( string name )
Adds a constant to the enumeration. |
void |
AddConstant( string name, string value )
Adds a constant to the enumeration. |
void |
AddConstant( string name, string value, CSharpComment comment )
Adds a constant to the enumeration. |
internal bool |
isLastConstant( Constant c )
Checks if the specified constant is the last one. |
override void |
Print( StreamWriter output, CodeStyle style, int indent )
Prints the code element to the specified output 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 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;
| Constructor Detail |
public CSharpEnumeration( string name );
name - the enumeration namepublic CSharpEnumeration( int modifiers, string name );
modifiers - the modifier flag constants
name - the enumeration name| Method Detail |
public void AddConstant( string name );
name - the constant namepublic void AddConstant( string name, string value );
name - the constant name
value - the constant valuepublic void AddConstant( string name, string value, CSharpComment comment );
name - the constant name
value - the constant value, or null
comment - the constant commentinternal bool isLastConstant( Constant c );
c - the constant to checkpublic 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 | |||||||