org.hackystat.telemetry.analyzer.language.ast
Class TextPosition

java.lang.Object
  extended by org.hackystat.telemetry.analyzer.language.ast.TextPosition

public class TextPosition
extends java.lang.Object

Text position indiating start and end location of telemetry definition.

Version:
$Id$
Author:
(Cedric) Qin ZHANG

Constructor Summary
TextPosition(int beginLine, int beginColumn, int endLine, int endColumn)
          Constructs this instance.
 
Method Summary
 int getBeginColumn()
          Gets the column position of the first character of the text.
 int getBeginLine()
          Gets the row position of the first character of the text.
 int getEndColumn()
          Gets the column position of the last character of the text.
 int getEndLine()
          Gets the row position of the last character of the text.
 java.lang.String toString()
          Gets string representation of this instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TextPosition

public TextPosition(int beginLine,
                    int beginColumn,
                    int endLine,
                    int endColumn)
Constructs this instance.

Parameters:
beginLine - The row position of the first character of the text.
beginColumn - The column position of the first character of the text.
endLine - The row position of the last character of the text.
endColumn - The column position of the last character of the text.
Method Detail

getBeginLine

public int getBeginLine()
Gets the row position of the first character of the text.

Returns:
The row position of the first character of the text.

getBeginColumn

public int getBeginColumn()
Gets the column position of the first character of the text.

Returns:
The column position of the first character of the text.

getEndLine

public int getEndLine()
Gets the row position of the last character of the text.

Returns:
The row position of the last character of the text.

getEndColumn

public int getEndColumn()
Gets the column position of the last character of the text.

Returns:
The column position of the last character of the text.

toString

public java.lang.String toString()
Gets string representation of this instance.

Overrides:
toString in class java.lang.Object
Returns:
The string representation.