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

Org.SourceFlow.Java
Class JavaComment

IComparable
   |
   +--CodeElement
         |
         +--JavaComment

   in JavaComment.cs

public class JavaComment
extends CodeElement

A class generating a Java comment.


Field Summary
 const int BLOCK
          The block comment type.
 override int Category
          Returns a numeric category number for the code element.
 const int DOCUMENTATION
          The JavaDoc documentation comment type.
 const int SINGLELINE
          The single line comment type.
   
Fields inherited from class CodeElement
Category
 
Constructor Summary
JavaComment( string comment )
          Creates a new documentation comment.
JavaComment( int type, string comment )
          Creates a new comment of the specified type.
 
Method Summary
 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

BLOCK

public const int BLOCK;
The block comment type.

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

DOCUMENTATION

public const int DOCUMENTATION;
The JavaDoc documentation comment type.

SINGLELINE

public const int SINGLELINE;
The single line comment type. Note that this may be used even if the comment spans several lines, as the // characters will be duplicated for each line.


Constructor Detail

JavaComment

public JavaComment( string comment );
Creates a new documentation comment.
Parameters:
comment - the comment text

JavaComment

public JavaComment( int type, string comment );
Creates a new comment of the specified type.
Parameters:
type - the comment type
comment - the comment text
See Also:
DOCUMENTATION, BLOCK, SINGLELINE


Method Detail

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