public class UnderlinedRange extends Object implements Comparable<UnderlinedRange>
| Modifier and Type | Field and Description |
|---|---|
int |
column
start at 1, column number of the first character of the token
|
int |
endColumn
start at 1, column number of the last character of the token
if the token has only one character, endColumn == column
|
int |
endLine
start at 1, line number of the last character of the token
if the token is on a single line, endLine == line
|
int |
line
start at 1, line number of the first character of the token
|
| Constructor and Description |
|---|
UnderlinedRange(int line,
int column,
int endLine,
int endColumn) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(UnderlinedRange other) |
boolean |
equals(Object other) |
int |
hashCode() |
String |
toString() |
void |
underline(int indent,
StringBuilder textLine) |
public final int line
public final int column
public final int endLine
public final int endColumn
public UnderlinedRange(int line,
int column,
int endLine,
int endColumn)
line, - start at 1, line number of the first character of the token, same as TokenLocation#startLine()column, - start at 1, column number of the first character of the token, same as TokenLocation#startLineOffset()+1,endLine, - start at 1, line number of the last character of the token, same as TokenLocation#endLine(),
if the token is on a single line, endLine == lineendColumn, - start at 1, column number of the last character of the token, same as TokenLocation#endLineOffset(),
if the token has only one character, endColumn == columnpublic int compareTo(UnderlinedRange other)
compareTo in interface Comparable<UnderlinedRange>public void underline(int indent,
StringBuilder textLine)
Copyright © 2009–2018 SonarSource. All rights reserved.