|
SourceFlow 1.0.beta API Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
IComparable
|
+--CodeElement
|
+--JavaConstructor
in JavaConstructor.csA class generating a Java constructor declaration.
| Field Summary | |
override int |
Category
Returns a numeric category number for the code element. |
|
href="../Org.SourceFlow.Java/JavaClass.html">JavaClass JavaClass
The constructor class property. |
const int |
PACKAGE_LOCAL
The package local access modifier constant (i.e. no modifier). |
const int |
PRIVATE
The private access modifier constant. |
const int |
PROTECTED
The protected access modifier constant. |
const int |
PUBLIC
The public access modifier constant. |
| Fields inherited from class CodeElement |
Category |
| Constructor Summary | |
JavaConstructor()
Creates a new empty constructor. |
|
JavaConstructor( string args )
Creates a new constructor with the specified arguments. |
|
JavaConstructor( int modifiers, string args )
Creates a new constructor with the specified arguments. |
|
| Method Summary | |
void |
AddCode( string codeLines )
Adds one or more lines of actual code. |
void |
AddComment( JavaComment comment )
Sets a comment for this constructor. |
void |
AddThrows( string className )
Adds a class to the list of exceptions thrown. |
override void |
Print( StreamWriter output, CodeStyle style, int indent )
Prints the code element to the specified output stream. |
| Methods inherited from class CodeElement |
CompareTo, Print, PrintSeparator |
| Field Detail |
public override int Category;
public JavaClass JavaClass;
public const int PACKAGE_LOCAL;
public const int PRIVATE;
public const int PROTECTED;
public const int PUBLIC;
| Constructor Detail |
public JavaConstructor();
public JavaConstructor( string args );
args - the argument list, excluding parenthesispublic JavaConstructor( int modifiers, string args );
modifiers - the modifier flags
args - the argument list, excluding parenthesis| Method Detail |
public void AddCode( string codeLines );
codeLines - the lines of Java code to addpublic void AddComment( JavaComment comment );
comment - the new constructor commentpublic void AddThrows( string className );
className - the name of the exception thrownpublic 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 | |||||||