Class TextRange2d
java.lang.Object
net.sourceforge.pmd.lang.document.TextRange2d
- All Implemented Interfaces:
Comparable<TextRange2d>
A place in a text document, represented as line/column information.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleanbooleancontains(TextRange2d range) booleanstatic TextRange2dfullLine(int line, int lineLength) intintintintinthashCode()static TextRange2drange2d(int bline, int bcol, int eline, int ecol) static TextRange2dtoString()
-
Constructor Details
-
TextRange2d
public TextRange2d(int startLine, int startCol, int endLine, int endCol)
-
-
Method Details
-
getStartPos
-
getEndPos
-
toDisplayStringWithColon
-
getStartLine
public int getStartLine() -
getStartColumn
public int getStartColumn() -
getEndLine
public int getEndLine() -
getEndColumn
public int getEndColumn() -
range2d
-
range2d
-
fullLine
-
compareTo
- Specified by:
compareToin interfaceComparable<TextRange2d>
-
contains
-
contains
-
equals
-
hashCode
public int hashCode() -
toString
-