|
SourceFlow 1.0.beta API Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
IComparable
|
+--CodeElement
|
+--CSharpMethod
in CSharpMethod.csA class generating a C# method declaration.
| Field Summary | |
const int |
ABSTRACT
The abstract modifier constant. |
override int |
Category
Returns a numeric category number for the code element. |
const int |
EXTERN
The extern modifier constant. |
const int |
INTERNAL
The internal access modifier constant. |
const int |
NEW
The new modifier constant. |
const int |
OVERRIDE
The override modifier constant. |
bool |
PrintCode
Sets the print code flag. |
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. |
const int |
STATIC
The static modifier constant. |
const int |
VIRTUAL
The virtual modifier constant. |
| Fields inherited from class CodeElement |
Category |
| Constructor Summary | |
CSharpMethod( string name )
Creates a new method with the specified name. |
|
CSharpMethod( string name, string args )
Creates a new method with the specified name and arguments. |
|
CSharpMethod( string name, string args, string returnType )
Creates a new method with the specified arguments. |
|
CSharpMethod( int modifiers, string name, string args, string returnType )
Creates a new method with the specified arguments. |
|
| Method Summary | |
void |
AddCode( string codeLines )
Adds one or more lines of actual code. |
void |
AddComment( CSharpComment comment )
Sets a comment for this method. |
bool |
CanPrintCode()
Checks if the method source code can the printed. |
override void |
Print( StreamWriter output, CodeStyle style, int indent )
Prints the code element to the specified output stream. |
override string |
ToString()
Returns the method name. |
| Methods inherited from class CodeElement |
CompareTo, Print, PrintSeparator |
| Field Detail |
public const int ABSTRACT;
public override int Category;
public const int EXTERN;
public const int INTERNAL;
public const int NEW;
public const int OVERRIDE;
public bool PrintCode;
public const int PRIVATE;
public const int PROTECTED;
public const int PROTECTED_INTERNAL;
public const int PUBLIC;
public const int SEALED;
public const int STATIC;
public const int VIRTUAL;
| Constructor Detail |
public CSharpMethod( string name );
name - the method namepublic CSharpMethod( string name, string args );
name - the method name
args - the argument list, excluding parenthesispublic CSharpMethod( string name, string args, string returnType );
name - the method name
args - the argument list, excluding parenthesis
returnType - the return typepublic CSharpMethod( int modifiers, string name, string args, string returnType );
modifiers - the modifier flags to use
name - the method name
args - the argument list, excluding parenthesis
returnType - the return type| Method Detail |
public void AddCode( string codeLines );
codeLines - the lines of Java code to addpublic void AddComment( CSharpComment comment );
comment - the new method commentpublic bool CanPrintCode();
public override void Print( StreamWriter output, CodeStyle style, int indent );
output - the output stream
style - the code style to use
indent - the indentation levelpublic override string ToString();
|
SourceFlow 1.0.beta API Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||