com.togethersoft.openapi.util.text
Class TextPosition


public class TextPosition

Represents a location within a document.

Author:
TogetherSoft
Since: Together 4.0

Field Summary
 private intmyColumn
           
 private intmyLine
           
 final static TextPositionUNKNOWN
           

Constructor Summary
TextPosition(int line, int column)
          In this form of constructor you can specify the line and the column of the position within a document.

Method Summary
 booleanequals(Object other)
          This method overrides java.lang.Object.equals()
 intgetColumn()
          Returns an int with the number of a column of this position within a document.
 intgetLine()
          Returns an int with the number of a line of this position within a document.
 inthashCode()
          This method overrides java.lang.Object.hashCode()

Field Detail

myColumn

private int myColumn

myLine

private int myLine

UNKNOWN

public final static TextPosition UNKNOWN
Constructor Detail

TextPosition

public TextPosition(int line, int column)
In this form of constructor you can specify the line and the column of the position within a document.
Method Detail

equals

public boolean equals(Object other)
This method overrides java.lang.Object.equals()

getColumn

public int getColumn()
Returns an int with the number of a column of this position within a document.
Returns: an int with the number of a column of this position within a document.

getLine

public int getLine()
Returns an int with the number of a line of this position within a document.
Returns: an int with the number of a line of this position within a document.

hashCode

public int hashCode()
This method overrides java.lang.Object.hashCode()

Association Links

to Class com.togethersoft.openapi.util.text.TextPosition