Class RowColumnVector
java.lang.Object
RowColumnVector
Represents the row and column number of a character position in the source document.
Obtained using the Source.getRowColumnVector(int pos) or Segment.getRowColumnVector() method.
-
Method Summary
Modifier and TypeMethodDescriptionintReturns the column number of this character position in the source document.intgetPos()Returns the character position in the source document.intgetRow()Returns the row number of this character position in the source document.toString()Returns a string representation of this character position.
-
Method Details
-
getRow
public int getRow()Returns the row number of this character position in the source document.If a
StreamedSourceis in use, this method always returns-1.- Returns:
- the row number of this character position in the source document.
-
getColumn
public int getColumn()Returns the column number of this character position in the source document.If a
StreamedSourceis in use, this method always returns-1.- Returns:
- the column number of this character position in the source document.
-
getPos
public int getPos()Returns the character position in the source document.- Returns:
- the character position in the source document.
-
toString
-