public final class RowColumnVector
extends java.lang.Object
Obtained using the Source.getRowColumnVector(int pos)
or Segment.getRowColumnVector()
method.
Modifier and Type | Method and Description |
---|---|
int |
getColumn()
Returns the column number of this character position in the source document.
|
int |
getPos()
Returns the character position in the source document.
|
int |
getRow()
Returns the row number of this character position in the source document.
|
java.lang.String |
toString()
Returns a string representation of this character position.
|
public int getRow()
If a StreamedSource
is in use, this method always returns -1
.
public int getColumn()
If a StreamedSource
is in use, this method always returns -1
.
public int getPos()
public java.lang.String toString()
The returned string has the format "(row,column:pos)
".
toString
in class java.lang.Object