View Javadoc

1   package net.sourceforge.pmd.ast;
2   
3   public abstract class Comment {
4   
5       private String image;
6   
7       private int beginLine = -1;
8   
9       private int endLine;
10  
11      private int beginColumn = -1;
12  
13      private int endColumn;
14  
15      protected Comment(Token t) {
16          beginLine = t.beginLine;
17          endLine = t.endLine;
18          beginColumn = t.beginColumn;
19          endColumn = t.endColumn;
20          image = t.image;
21      }
22  
23      public String getImage() {
24          return image;
25      }
26  
27      public int getBeginLine() {
28          return beginLine;
29      }
30  
31      public int getEndLine() {
32          return endLine;
33      }
34  
35      public int getBeginColumn() {
36          return beginColumn;
37      }
38  
39      public int getEndColumn() {
40          return endColumn;
41      }
42  
43  }