|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--upidiff.merge.CharOffset
This class represents an offset to locate a position of a char in a text
| Field Summary | |
private int |
lineNumber
Position of the line in the text |
private int |
positionInLine
Position of the char in the line |
| Constructor Summary | |
CharOffset(int lineNumber,
int positionInLine)
constructs a new CharOffset object |
|
| Method Summary | |
int |
getLineNumber()
Queries the number of the line that includes the char |
int |
getPositionInLine()
Queries the position of the char in the line |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private int lineNumber
getLineNumber()private int positionInLine
getPositionInLine()| Constructor Detail |
public CharOffset(int lineNumber,
int positionInLine)
lineNumber - sets the position of the line in the text
that includes the charpositionInLine - sets the position of the char in the line| Method Detail |
public int getLineNumber()
public int getPositionInLine()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||