| 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 input file where the text block ends.
|
int |
getEndLineNo()
The last line of the text block in the input file.
|
int |
getStartColNo()
The column in the input file where the text block starts.
|
int |
getStartLineNo()
The line in the input file where the text block starts.
|
String[] |
getText()
The text content of the text block.
|
boolean |
intersects(int startLine,
int startCol,
int endLine,
int endCol)
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()
TextBlockpublic final int getStartLineNo()
TextBlockgetStartLineNo in interface TextBlockpublic final int getEndLineNo()
TextBlockgetEndLineNo in interface TextBlockpublic int getStartColNo()
TextBlockgetStartColNo in interface TextBlockpublic int getEndColNo()
TextBlockgetEndColNo in interface TextBlockpublic boolean intersects(int startLine, int startCol, int endLine, int endCol)
TextBlockintersects in interface TextBlockstartLine - the starting line number in the filestartCol - the starting column number in the fileendLine - the ending line number in the fileendCol - the ending column number in the fileCopyright © 2001–2018. All rights reserved.