java.lang.Object
org.codehaus.modello.plugin.java.javasource.JComment

public class JComment extends Object
A class that represents a Java comment.
Version:
$Revision$ $Date$
  • Field Details

  • Constructor Details

    • JComment

      public JComment()
      Creates a new Java Comment
    • JComment

      public JComment(short style)
      Creates a new Java comment with the given style
      Parameters:
      style - the comment style
  • Method Details

    • appendComment

      public void appendComment(String comment)
      Appends the comment String to this JDocComment
      Parameters:
      comment - the comment to append
    • print

      public void print(JSourceWriter jsw)
      prints this JComment using the given JSourceWriter
      Parameters:
      jsw - the JSourceWriter to print to
    • setComment

      public void setComment(String comment)
      Sets the comment String of this JDocComment
      Parameters:
      comment - the comment String of this JDocComment
    • setStyle

      public void setStyle(short style)
      Sets the style for this JComment
      Parameters:
      style - the style to use for this JComment
    • toString

      public String toString()
      Returns the String representation of this Java Doc Comment
      Overrides:
      toString in class Object
      Returns:
      the String representation of this Java Doc Comment