|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.anadix.html.Position
public class Position
Representation of position of a character in document. It offers two variations: Either the position of a character or as a line, column pair. Please note that both representations at once are not supported.
| Constructor Summary | |
|---|---|
Position(int characterNumber)
Constructor |
|
Position(int lineNumber,
int columnNumber)
Constructor |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
int |
getCharacterNumber()
Gets the character number from the beginning of the document |
int |
getColumnNumber()
Gets the column number |
int |
getLineNumber()
Gets the line number |
int |
hashCode()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Position(int characterNumber)
characterNumber - number of a character in document
public Position(int lineNumber,
int columnNumber)
lineNumber - number of line character is oncolumnNumber - number of column character is on| Method Detail |
|---|
public int getCharacterNumber()
public int getLineNumber()
public int getColumnNumber()
public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||