| Constructor and Description |
|---|
Comment(String[] text,
int firstCol,
int lastLine,
int lastCol)
Creates new instance.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getEndColNo()
The column in the inputfile where the text block ends.
|
int |
getEndLineNo()
The last line of the text block in the inputfile.
|
int |
getStartColNo()
The column in the inputfile where the text block starts.
|
int |
getStartLineNo()
The line in the inputfile where the text block starts.
|
String[] |
getText()
The text content of the text block.
|
boolean |
intersects(int startLineNo,
int startColNo,
int endLineNo,
int endColNo)
Checks if this comment intersects with a specified
part of the file.
|
String |
toString() |
public Comment(String[] text, int firstCol, int lastLine, int lastCol)
text - the lines that make up the comment.firstCol - number of the first column of the comment.lastLine - number of the last line of the comment.lastCol - number of the last column of the comment.public final String[] getText()
public final int getStartLineNo()
getStartLineNo in interface TextBlockpublic final int getEndLineNo()
getEndLineNo in interface TextBlockpublic int getStartColNo()
getStartColNo in interface TextBlockpublic int getEndColNo()
getEndColNo in interface TextBlockpublic boolean intersects(int startLineNo, int startColNo, int endLineNo, int endColNo)
intersects in interface TextBlockstartLineNo - the starting line number in the filestartColNo - the starting column number in the fileendLineNo - the ending line number in the fileendColNo - the ending column number in the fileCopyright © 2001–2015. All rights reserved.