Overview   Project   Class   Tree   Deprecated   Index 
SourceFlow 1.0.beta API Documentation
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

Org.SourceFlow.Java
Class JavaConstructor

IComparable
   |
   +--CodeElement
         |
         +--JavaConstructor

   in JavaConstructor.cs

public class JavaConstructor
extends CodeElement

A 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

Category

public override int Category;
Returns a numeric category number for the code element. A lower category number implies that the code element should be placed before code elements with a higher category number within a declaration.
Returns:
the category number

JavaClass

public JavaClass JavaClass;
The constructor class property. This property should not be set by classes outside this namespace.

PACKAGE_LOCAL

public const int PACKAGE_LOCAL;
The package local access modifier constant (i.e. no modifier).

PRIVATE

public const int PRIVATE;
The private access modifier constant.

PROTECTED

public const int PROTECTED;
The protected access modifier constant.

PUBLIC

public const int PUBLIC;
The public access modifier constant.


Constructor Detail

JavaConstructor

public JavaConstructor();
Creates a new empty constructor.

JavaConstructor

public JavaConstructor( string args );
Creates a new constructor with the specified arguments.
Parameters:
args - the argument list, excluding parenthesis

JavaConstructor

public JavaConstructor( int modifiers, string args );
Creates a new constructor with the specified arguments.
Parameters:
modifiers - the modifier flags
args - the argument list, excluding parenthesis


Method Detail

AddCode

public void AddCode( string codeLines );
Adds one or more lines of actual code.
Parameters:
codeLines - the lines of Java code to add

AddComment

public void AddComment( JavaComment comment );
Sets a comment for this constructor.
Parameters:
comment - the new constructor comment

AddThrows

public void AddThrows( string className );
Adds a class to the list of exceptions thrown.
Parameters:
className - the name of the exception thrown

Print

public override void Print( StreamWriter output, CodeStyle style, int indent );
Prints the code element to the specified output stream.
Parameters:
output - the output stream
style - the code style to use
indent - the indentation level

 Overview   Project   Class   Tree   Deprecated   Index 
SourceFlow 1.0.beta API Documentation
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD