Public Member Functions | Static Public Attributes | Static Protected Attributes

org.exolab.javasource.JComment Class Reference

List of all members.

Public Member Functions

 JComment ()
 JComment (short style)
void appendComment (String comment)
void print (JSourceWriter jsw)
void setComment (String comment)
void setStyle (short style)
String toString ()

Static Public Attributes

static final short AUTO_STYLE = 0
static final short BLOCK_STYLE = 1
static final short LINE_STYLE = 2
static final short HEADER_STYLE = 3
static final short JAVADOC_STYLE = 4

Static Protected Attributes

static final int MAX_LENGTH = 65

Detailed Description

A class that represents a Java comment.

Author:
Keith Visco
Version:
Revision:
1.1.1.1
Date:
2003/03/03 07:09:53

Constructor & Destructor Documentation

org.exolab.javasource.JComment.JComment (  ) 

Creates a new Java Comment

org.exolab.javasource.JComment.JComment ( short  style  ) 

Creates a new Java comment with the given style


Member Function Documentation

void org.exolab.javasource.JComment.appendComment ( String  comment  ) 

Appends the comment String to this JDocComment

Parameters:
comment the comment to append

Referenced by org.exolab.javasource.JDocComment.print(), and org.exolab.castor.builder.SourceGenerator.SourceGenerator().

void org.exolab.javasource.JComment.print ( JSourceWriter  jsw  ) 
void org.exolab.javasource.JComment.setComment ( String  comment  ) 

Sets the comment String of this JDocComment

Parameters:
comment the comment String of this JDocComment

Referenced by org.exolab.javasource.JDocComment.print().

void org.exolab.javasource.JComment.setStyle ( short  style  ) 

Sets the style for this JComment

Parameters:
style the style to use for this JComment
String org.exolab.javasource.JComment.toString (  ) 

Returns the String representation of this Java Doc Comment

Returns:
the String representation of this Java Doc Comment

Member Data Documentation

The auto style, allows this JComment to automatically choose a style for this comment

Referenced by org.exolab.javasource.JComment.print().

The block comment style: \/* *\/

Referenced by org.exolab.javasource.JComment.print().

The header style, similiar to block, but with an '*' at the start of each line.

Referenced by org.exolab.javasource.JComment.print().

Similiar to HEADER_STYLE, but starts with: \/**

Referenced by org.exolab.javasource.JComment.print().

The line comment style: \/\/

Referenced by org.exolab.javasource.JComment.print().

final int org.exolab.javasource.JComment.MAX_LENGTH = 65 [static, protected]

The maximum number of characters per line

Referenced by org.exolab.javasource.JComment.print().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties