gov.llnl.babel.symbols
Class Comment

java.lang.Object
  |
  +--gov.llnl.babel.symbols.Comment

public class Comment
extends java.lang.Object

The Comment class represents a documentation comment. The comment is stored as an array of strings, with each array element representing one line of the comment.


Constructor Summary
Comment(java.lang.String[] comment)
          This constructor for the Comment class takes an array of strings, one string for each line of the comment.
 
Method Summary
static Comment combineComments(Comment original, Comment additional)
           
 boolean equals(java.lang.Object o)
          Return true if two comments are exactly equal.
 java.lang.String[] getComment()
          Return the comment as an array of strings, with one string for each line of the comment.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Comment

public Comment(java.lang.String[] comment)
This constructor for the Comment class takes an array of strings, one string for each line of the comment. The input argument may be null, which indicates "no comment."

Method Detail

getComment

public java.lang.String[] getComment()
Return the comment as an array of strings, with one string for each line of the comment. The return argument may be null, in which case there is no comment text.


equals

public boolean equals(java.lang.Object o)
Return true if two comments are exactly equal. Two comments are equal if they have the same number of lines, and each corresponding line is equal. This is false if the parameter is not a comment.

Overrides:
equals in class java.lang.Object
Parameters:
o - the object to test

combineComments

public static Comment combineComments(Comment original,
                                      Comment additional)