|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectRowColumnVector
public final class RowColumnVector
Represents the row and column number of a character position in the source document.
Obtained using the Source.getRowColumnVector(int pos)
method.
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |