|
SourceFlow 1.0.beta API Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
IComparable
|
+--CodeElement
|
+--JavaMethod
in JavaMethod.csA class generating a Java 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 |
FINAL
The final modifier constant. |
const int |
NATIVE
The native modifier constant. |
const int |
PACKAGE_LOCAL
The package local access modifier constant (i.e. no modifier). |
internal bool |
PrintCode
The method source code print flag. |
const int |
PRIVATE
The private access modifier constant. |
const int |
PROTECTED
The protected access modifier constant. |
const int |
PUBLIC
The public access modifier constant. |
const int |
STATIC
The static modifier constant. |
const int |
STRICTFP
The strict floating point modifier constant. |
const int |
SYNCHRONIZED
The synchronized modifier constant. |
| Fields inherited from class CodeElement |
Category |
| Constructor Summary | |
JavaMethod( string name )
Creates a new method with the specified name. |
|
JavaMethod( string name, string args )
Creates a new method with the specified name and arguments. |
|
JavaMethod( string name, string args, string returnType )
Creates a new method with the specified arguments. |
|
JavaMethod( 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( JavaComment comment )
Sets a comment for this method. |
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. |
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 FINAL;
public const int NATIVE;
public const int PACKAGE_LOCAL;
internal bool PrintCode;
public const int PRIVATE;
public const int PROTECTED;
public const int PUBLIC;
public const int STATIC;
public const int STRICTFP;
public const int SYNCHRONIZED;
| Constructor Detail |
public JavaMethod( string name );
name - the method namepublic JavaMethod( string name, string args );
name - the method name
args - the argument list, excluding parenthesispublic JavaMethod( string name, string args, string returnType );
name - the method name
args - the argument list, excluding parenthesis
returnType - the return typepublic JavaMethod( 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( JavaComment comment );
comment - the new method 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 levelpublic override string ToString();
|
SourceFlow 1.0.beta API Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||