1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package gov.nasa.pds.tools.label;
17
18 /***
19 * @author pramirez
20 * @version $Revision: 2606 $
21 *
22 */
23 public class CommentStatement extends Statement {
24 public final static String COMMENT_ID = "COMMENT-";
25 private String comment;
26
27 public CommentStatement(int lineNumber, String identifier, String comment) {
28 super(lineNumber, identifier);
29 this.comment = comment;
30 }
31
32 /***
33 * @param lineNumber
34 * @param identifier
35 */
36 public CommentStatement(int lineNumber, String identifier) {
37 this(lineNumber, identifier, "");
38 }
39
40 public CommentStatement(int lineNumber) {
41 this(lineNumber, COMMENT_ID + lineNumber, "");
42 }
43
44 public void setComment(String comment) {
45 this.comment = comment;
46 }
47
48 public String getComment() {
49 return comment;
50 }
51
52 public void attachComment(CommentStatement comment) {
53
54 }
55 }